Undo changelogs and installation optimizations
This commit is contained in:
@@ -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
|
||||
-----------------------------
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,35 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
/**
|
||||
* 2010-2022 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @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;
|
||||
|
||||
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;
|
||||
|
||||
@@ -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
|
||||
-------------------------
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
-------------------------
|
||||
|
||||
@@ -1,35 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
/**
|
||||
* 2010-2022 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @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;
|
||||
|
||||
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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
------------------------------
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
------------------------------
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
------------------------------
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
) {
|
||||
|
||||
@@ -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
|
||||
------------------------------
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user