diff --git a/modules/blockcms/blockcms.php b/modules/blockcms/blockcms.php index 0c1a8abc4..82e232210 100755 --- a/modules/blockcms/blockcms.php +++ b/modules/blockcms/blockcms.php @@ -39,7 +39,7 @@ class BlockCms extends Module { $this->name = 'blockcms'; $this->tab = 'front_office_features'; - $this->version = '1.3'; + $this->version = '1.4'; $this->author = 'PrestaShop'; $this->need_instance = 0; @@ -61,6 +61,7 @@ class BlockCms extends Module || !$this->registerHook('actionObjectCmsUpdateAfter') || !$this->registerHook('actionObjectCmsDeleteAfter') || !$this->registerHook('actionShopDataDuplication') + || !$this->registerHook('actionAdminStoresControllerUpdate_optionsAfter') || !BlockCMSModel::createTables() || !Configuration::updateValue('FOOTER_CMS', '') || !Configuration::updateValue('FOOTER_BLOCK_ACTIVATION', 1) @@ -684,6 +685,12 @@ class BlockCms extends Module return parent::getCacheId('blockcms|'.$name); } + public function hookActionAdminStoresControllerUpdate_optionsAfter() + { + if (Tools::getIsset('PS_STORES_DISPLAY_FOOTER')) + $this->_clearCache('blockcms.tpl'); + } + public function hookActionObjectCmsUpdateAfter() { $this->_clearCache('blockcms.tpl'); diff --git a/modules/blockcms/config.xml b/modules/blockcms/config.xml index b8683e704..40900e5de 100755 --- a/modules/blockcms/config.xml +++ b/modules/blockcms/config.xml @@ -2,7 +2,7 @@ blockcms - + diff --git a/modules/blockcms/upgrade/install-1.4.php b/modules/blockcms/upgrade/install-1.4.php new file mode 100644 index 000000000..9702660d9 --- /dev/null +++ b/modules/blockcms/upgrade/install-1.4.php @@ -0,0 +1,9 @@ +registerHook('actionAdminStoresControllerUpdate_optionsAfter')); +}