diff --git a/modules/blockwishlist/CHANGELOG.txt b/modules/blockwishlist/CHANGELOG.txt index 471b0a0ff..66c403bcf 100644 --- a/modules/blockwishlist/CHANGELOG.txt +++ b/modules/blockwishlist/CHANGELOG.txt @@ -1,11 +1,3 @@ ------------------------------ -# V1.3.2 to V1.3.3 ------------------------------ - -## Improved/Changed Features: - -* [CO] : Removed install.sql - ----------------------------- # V1.3.1 to V1.3.2 ----------------------------- diff --git a/modules/blockwishlist/blockwishlist.php b/modules/blockwishlist/blockwishlist.php index 2b520b42d..5575c35bb 100644 --- a/modules/blockwishlist/blockwishlist.php +++ b/modules/blockwishlist/blockwishlist.php @@ -24,8 +24,9 @@ * International Registered Trademark & Property of PrestaShop SA */ -if (!defined('_PS_VERSION_')) +if (!defined('_PS_VERSION_')) { exit; +} include_once (dirname(__FILE__).'/classes/BlockWishlistDb.php'); include_once (dirname(__FILE__).'/WishList.php'); @@ -38,7 +39,7 @@ class BlockWishList extends Module { $this->name = 'blockwishlist'; $this->tab = 'front_office_features'; - $this->version = '1.3.3'; + $this->version = '1.3.2'; $this->author = 'PrestaShop'; $this->need_instance = 0; @@ -54,16 +55,11 @@ class BlockWishList extends Module $this->html = ''; } - public function install($delete_params = true) + public function install() { - if ($delete_params) { - $objBlockWishListDb = new BlockWishlistDb(); - if (!$objBlockWishListDb->createTables()) { - return false; - } - } - + $objBlockWishListDb = new BlockWishlistDb(); if (!parent::install() || + !$objBlockWishListDb->createTables() || !$this->registerHook('rightColumn') || !$this->registerHook('productActions') || !$this->registerHook('cart') || @@ -71,21 +67,24 @@ class BlockWishList extends Module !$this->registerHook('header') || !$this->registerHook('adminCustomers') || !$this->registerHook('displayProductListFunctionalButtons') || - !$this->registerHook('top')) + !$this->registerHook('top') + ) { return false; + } /* This hook is optional */ $this->registerHook('displayMyAccountBlock'); return true; } - public function uninstall($delete_params = true) + public function uninstall($delete_data = true) { $objBlockWishListDb = new BlockWishlistDb(); - if (($delete_params && !$objBlockWishListDb->dropTables()) || !parent::uninstall()) { + if (!parent::uninstall() + || ($delete_data && !$objBlockWishListDb->dropTables()) + ) { return false; } - return true; } @@ -102,11 +101,12 @@ class BlockWishList extends Module public function reset() { - if (!$this->uninstall(false)) + if (!$this->uninstall(false)) { return false; - if (!$this->install(false)) + } + if (!$this->install()) { return false; - + } return true; } diff --git a/modules/blockwishlist/classes/index.php b/modules/blockwishlist/classes/index.php index 044cb85ee..5d9e49caf 100644 --- a/modules/blockwishlist/classes/index.php +++ b/modules/blockwishlist/classes/index.php @@ -1,35 +1,29 @@ -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt */ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file + +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/modules/hotelreservationsystem/CHANGELOG.txt b/modules/hotelreservationsystem/CHANGELOG.txt index 574e67e0d..d41a48a25 100644 --- a/modules/hotelreservationsystem/CHANGELOG.txt +++ b/modules/hotelreservationsystem/CHANGELOG.txt @@ -1,11 +1,3 @@ -------------------------- -# V1.4.3 to V1.4.4 -------------------------- - -## Improved/changed features: - -[*] CO : Removed install.sql - ------------------------- # V1.4.2 to V1.4.3 ------------------------- diff --git a/modules/hotelreservationsystem/hotelreservationsystem.php b/modules/hotelreservationsystem/hotelreservationsystem.php index 5af970fd7..0a0c2544f 100644 --- a/modules/hotelreservationsystem/hotelreservationsystem.php +++ b/modules/hotelreservationsystem/hotelreservationsystem.php @@ -28,7 +28,7 @@ class hotelreservationsystem extends Module public function __construct() { $this->name = 'hotelreservationsystem'; - $this->version = '1.4.4'; + $this->version = '1.4.3'; $this->author = 'Webkul'; $this->need_instance = 0; $this->bootstrap = true; @@ -636,12 +636,18 @@ class hotelreservationsystem extends Module public function install() { $objModuleDb = new HotelReservationSystemDb(); - if (!$objModuleDb->createTables()) { + $objHtlHelper = new HotelHelper(); + if (!parent::install() + || !$objModuleDb->createTables() + || !$this->registerModuleHooks() + || !$this->callInstallTab() + || !$objHtlHelper->insertDefaultHotelEntries() + || !$objHtlHelper->insertHotelRoomAllotmentType() + ) { return false; } // if module should be populated while installation - $objHtlHelper = new HotelHelper(); if (isset($this->populateData) && $this->populateData) { if (!$objHtlHelper->createHotelRoomDefaultFeatures() || !$objHtlHelper->insertHotelCommonFeatures() @@ -651,15 +657,6 @@ class hotelreservationsystem extends Module } } - if (!parent::install() - || !$this->callInstallTab() - || !$this->registerModuleHooks() - || !$objHtlHelper->insertDefaultHotelEntries() - || !$objHtlHelper->insertHotelRoomAllotmentType() - ) { - return false; - } - return true; } diff --git a/modules/productcomments/CHANGELOG.txt b/modules/productcomments/CHANGELOG.txt index c7724d39c..650ea1596 100644 --- a/modules/productcomments/CHANGELOG.txt +++ b/modules/productcomments/CHANGELOG.txt @@ -1,11 +1,3 @@ -------------------------- -# V3.6.1 to V3.6.2 -------------------------- - -## Improved/changed features: - -* [CO] : Removed install.sql - ------------------------- # V3.6.0 to V3.6.1 ------------------------- diff --git a/modules/productcomments/classes/index.php b/modules/productcomments/classes/index.php index 044cb85ee..5d9e49caf 100644 --- a/modules/productcomments/classes/index.php +++ b/modules/productcomments/classes/index.php @@ -1,35 +1,29 @@ -* @copyright 2007-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt */ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file + +header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); +header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); + +header('Cache-Control: no-store, no-cache, must-revalidate'); +header('Cache-Control: post-check=0, pre-check=0', false); +header('Pragma: no-cache'); + +header('Location: ../'); +exit; diff --git a/modules/productcomments/productcomments.php b/modules/productcomments/productcomments.php index 23e186ad8..467dff18a 100644 --- a/modules/productcomments/productcomments.php +++ b/modules/productcomments/productcomments.php @@ -24,8 +24,9 @@ * International Registered Trademark & Property of PrestaShop SA */ -if (!defined('_PS_VERSION_')) +if (!defined('_PS_VERSION_')) { exit; +} include_once (dirname(__FILE__).'/classes/ProductCommentsDb.php'); @@ -42,7 +43,7 @@ class ProductComments extends Module { $this->name = 'productcomments'; $this->tab = 'front_office_features'; - $this->version = '3.6.2'; + $this->version = '3.6.1'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; @@ -57,16 +58,11 @@ class ProductComments extends Module $this->description = $this->l('Allows users to post reviews and rate products on specific criteria.'); } - public function install($keep = true) + public function install() { - if ($keep) { - $objProductCommentsDb = new ProductCommentsDb(); - if (!$objProductCommentsDb->createTables()) { - return false; - } - } - + $objProductCommentsDb = new ProductCommentsDb(); if (parent::install() == false || + !$objProductCommentsDb->createTables() || !$this->registerHook('productTab') || !$this->registerHook('extraProductComparison') || !$this->registerHook('productTabContent') || @@ -75,15 +71,17 @@ class ProductComments extends Module !$this->registerHook('displayProductListReviews') || !Configuration::updateValue('PRODUCT_COMMENTS_MINIMAL_TIME', 30) || !Configuration::updateValue('PRODUCT_COMMENTS_ALLOW_GUESTS', 0) || - !Configuration::updateValue('PRODUCT_COMMENTS_MODERATE', 1)) + !Configuration::updateValue('PRODUCT_COMMENTS_MODERATE', 1) + ) { return false; + } return true; } - public function uninstall($keep = true) + public function uninstall($delete_data = true) { $objProductCommentsDb = new ProductCommentsDb(); - if (!parent::uninstall() || ($keep && !$objProductCommentsDb->dropTables()) || + if (!parent::uninstall() || ($delete_data && !$objProductCommentsDb->dropTables()) || !Configuration::deleteByName('PRODUCT_COMMENTS_MODERATE') || !Configuration::deleteByName('PRODUCT_COMMENTS_ALLOW_GUESTS') || !Configuration::deleteByName('PRODUCT_COMMENTS_MINIMAL_TIME') || @@ -93,17 +91,21 @@ class ProductComments extends Module !$this->unregisterHook('header') || !$this->unregisterHook('productTab') || !$this->unregisterHook('top') || - !$this->unregisterHook('displayProductListReviews')) + !$this->unregisterHook('displayProductListReviews') + ) { return false; + } return true; } public function reset() { - if (!$this->uninstall(false)) + if (!$this->uninstall(false)) { return false; - if (!$this->install(false)) + } + if (!$this->install()) { return false; + } return true; } diff --git a/modules/wkabouthotelblock/CHANGELOG.txt b/modules/wkabouthotelblock/CHANGELOG.txt index 5fc3470f7..a411dc1ab 100644 --- a/modules/wkabouthotelblock/CHANGELOG.txt +++ b/modules/wkabouthotelblock/CHANGELOG.txt @@ -1,11 +1,3 @@ ------------------------------- -# V1.1.7 to V1.1.8 ------------------------------- - -## Improved/Changed Features: - -[*] CO : Removed install.sql - ------------------------------ # V1.1.6 to V1.1.7 ------------------------------ diff --git a/modules/wkabouthotelblock/wkabouthotelblock.php b/modules/wkabouthotelblock/wkabouthotelblock.php index 8b8517db7..5b3b5a0c1 100644 --- a/modules/wkabouthotelblock/wkabouthotelblock.php +++ b/modules/wkabouthotelblock/wkabouthotelblock.php @@ -30,7 +30,7 @@ class WkAboutHotelBlock extends Module { $this->name = 'wkabouthotelblock'; $this->tab = 'front_office_features'; - $this->version = '1.1.8'; + $this->version = '1.1.7'; $this->author = 'Webkul'; $this->need_instance = 0; @@ -90,12 +90,9 @@ class WkAboutHotelBlock extends Module public function install() { $objAboutHotelBlockDb = new WkAboutHotelBlockDb(); - if (!$objAboutHotelBlockDb->createTables()) { - return false; - } - $objHtlInteriorImg = new WkHotelInteriorImage(); if (!parent::install() + || !$objAboutHotelBlockDb->createTables() || !$this->registerModuleHooks() || !$this->callInstallTab() || !$objHtlInteriorImg->insertModuleDemoData() diff --git a/modules/wkfooterpaymentblock/CHANGELOG.txt b/modules/wkfooterpaymentblock/CHANGELOG.txt index 9d268d610..70e44f870 100644 --- a/modules/wkfooterpaymentblock/CHANGELOG.txt +++ b/modules/wkfooterpaymentblock/CHANGELOG.txt @@ -1,11 +1,3 @@ ------------------------------- -# V1.1.4 to V1.1.5 ------------------------------- - -## Improved/Changed Features: - -[*] FO : Removed install.sql - ------------------------------ # V1.1.3 to V1.1.4 ------------------------------ diff --git a/modules/wkfooterpaymentblock/wkfooterpaymentblock.php b/modules/wkfooterpaymentblock/wkfooterpaymentblock.php index 3453a1377..4ee7f9ed3 100644 --- a/modules/wkfooterpaymentblock/wkfooterpaymentblock.php +++ b/modules/wkfooterpaymentblock/wkfooterpaymentblock.php @@ -31,7 +31,7 @@ class WkFooterPaymentBlock extends Module { $this->name = 'wkfooterpaymentblock'; $this->tab = 'front_office_features'; - $this->version = '1.1.5'; + $this->version = '1.1.4'; $this->author = 'Webkul'; $this->need_instance = 0; @@ -99,11 +99,8 @@ class WkFooterPaymentBlock extends Module public function install() { $objFooterPaymentBlockDb = new WkFooterPaymentBlockDb(); - if (!$objFooterPaymentBlockDb->createTables()) { - return false; - } - if (!parent::install() + || !$objFooterPaymentBlockDb->createTables() ||!$this->registerHook('displayFooterPaymentInfo') ||!$this->registerHook('displayAddModuleSettingLink') || !$this->callInstallTab() @@ -123,7 +120,6 @@ class WkFooterPaymentBlock extends Module ) { return false; } - return true; } diff --git a/modules/wkhotelfeaturesblock/CHANGELOG.txt b/modules/wkhotelfeaturesblock/CHANGELOG.txt index ad8fd6e63..4f9aa0009 100644 --- a/modules/wkhotelfeaturesblock/CHANGELOG.txt +++ b/modules/wkhotelfeaturesblock/CHANGELOG.txt @@ -1,11 +1,3 @@ ------------------------------- -# V2.0.5 to V2.0.6 ------------------------------- - -## Improved/Changed Features: - -[*] CO : Removed install.sql - ------------------------------ # V2.0.4 to V2.0.5 ------------------------------ diff --git a/modules/wkhotelfeaturesblock/wkhotelfeaturesblock.php b/modules/wkhotelfeaturesblock/wkhotelfeaturesblock.php index c19cb6701..b7550193a 100644 --- a/modules/wkhotelfeaturesblock/wkhotelfeaturesblock.php +++ b/modules/wkhotelfeaturesblock/wkhotelfeaturesblock.php @@ -32,7 +32,7 @@ class WkHotelFeaturesBlock extends Module { $this->name = 'wkhotelfeaturesblock'; $this->tab = 'front_office_features'; - $this->version = '2.0.6'; + $this->version = '2.0.5'; $this->author = 'Webkul'; $this->bootstrap = true; parent::__construct(); @@ -122,12 +122,9 @@ class WkHotelFeaturesBlock extends Module public function install() { $objHotelFeaturesBlockDb = new WkHotelFeaturesBlockDb(); - if (!$objHotelFeaturesBlockDb->createTables()) { - return false; - } - $objFeaturesData = new WkHotelFeaturesData(); if (!parent::install() + || !$objHotelFeaturesBlockDb->createTables() || !$this->registerModuleHooks() || !$this->callInstallTab() || !$objFeaturesData->insertModuleDemoData() diff --git a/modules/wkhotelroom/CHANGELOG.txt b/modules/wkhotelroom/CHANGELOG.txt index adb50074d..488e05936 100644 --- a/modules/wkhotelroom/CHANGELOG.txt +++ b/modules/wkhotelroom/CHANGELOG.txt @@ -1,13 +1,5 @@ ------------------------------ -# V1.1.7 to V1.1.8 ------------------------------- - -## Improved/Changed Features: - -[*] CO : Removed install.sql - ------------------------------- -# V1.1.6 to V1.1.7 +# V1.1.7 to V1.1.7 ------------------------------ ## Improved/Changed Features: diff --git a/modules/wkhotelroom/wkhotelroom.php b/modules/wkhotelroom/wkhotelroom.php index caa0fb177..9f8723c1a 100644 --- a/modules/wkhotelroom/wkhotelroom.php +++ b/modules/wkhotelroom/wkhotelroom.php @@ -30,7 +30,7 @@ class WkHotelRoom extends Module { $this->name = 'wkhotelroom'; $this->tab = 'front_office_features'; - $this->version = '1.1.8'; + $this->version = '1.1.7'; $this->author = 'Webkul'; $this->bootstrap = true; parent::__construct(); @@ -179,11 +179,8 @@ class WkHotelRoom extends Module public function install() { $objHotelRoomDb = new WkHotelRoomDb(); - if (!$objHotelRoomDb->createTables()) { - return false; - } - if (!parent::install() + || !$objHotelRoomDb->createTables() || !$this->registerModuleHooks() || !$this->callInstallTab() ) { diff --git a/modules/wktestimonialblock/CHANGELOG.txt b/modules/wktestimonialblock/CHANGELOG.txt index e9097f51e..93d324eb9 100644 --- a/modules/wktestimonialblock/CHANGELOG.txt +++ b/modules/wktestimonialblock/CHANGELOG.txt @@ -1,10 +1,3 @@ -# V1.1.5 to V1.1.6 ------------------------------- - -## Improved/Changed Features: - -[*] CO : Removed install.sql - # V1.1.4 to V1.1.5 ------------------------------ diff --git a/modules/wktestimonialblock/wktestimonialblock.php b/modules/wktestimonialblock/wktestimonialblock.php index f4947ae8b..de379ea38 100644 --- a/modules/wktestimonialblock/wktestimonialblock.php +++ b/modules/wktestimonialblock/wktestimonialblock.php @@ -32,7 +32,7 @@ class WkTestimonialBlock extends Module { $this->name = 'wktestimonialblock'; $this->tab = 'front_office_features'; - $this->version = '1.1.6'; + $this->version = '1.1.5'; $this->author = 'webkul'; $this->need_instance = 0; @@ -114,12 +114,9 @@ class WkTestimonialBlock extends Module public function install() { $objTestimonialBlockDb = new WkTestimonialBlockDb(); - if (!$objTestimonialBlockDb->createTables()) { - return false; - } - $objTestimonialData = new WkHotelTestimonialData(); if (!parent::install() + || !$objTestimonialBlockDb->createTables() || !$this->registerModuleHooks() || !$this->callInstallTab() || !$objTestimonialData->insertModuleDemoData()