// clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15680 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-05-25 09:39:49 +00:00
parent 30c7ce6255
commit cd9f202c8c
+1 -3
View File
@@ -54,7 +54,6 @@ class BlockCms extends Module
{ {
if (!parent::install() || if (!parent::install() ||
!$this->registerHooks() || !$this->registerHooks() ||
!$this->registerHook('actionShopDataDuplication') ||
!BlockCMSModel::createTables() || !BlockCMSModel::createTables() ||
!Configuration::updateValue('FOOTER_CMS', '') || !Configuration::updateValue('FOOTER_CMS', '') ||
!Configuration::updateValue('FOOTER_BLOCK_ACTIVATION', 1) || !Configuration::updateValue('FOOTER_BLOCK_ACTIVATION', 1) ||
@@ -104,7 +103,6 @@ class BlockCms extends Module
{ {
if (!parent::uninstall() || if (!parent::uninstall() ||
!BlockCMSModel::DropTables() || !BlockCMSModel::DropTables() ||
!$this->unregisterHook('actionShopDataDuplication') ||
!Configuration::deleteByName('FOOTER_CMS') || !Configuration::deleteByName('FOOTER_CMS') ||
!Configuration::deleteByName('FOOTER_BLOCK_ACTIVATION') || !Configuration::deleteByName('FOOTER_BLOCK_ACTIVATION') ||
!Configuration::deleteByName('FOOTER_POWEREDBY')) !Configuration::deleteByName('FOOTER_POWEREDBY'))
@@ -117,7 +115,7 @@ class BlockCms extends Module
{ {
return ( return (
$this->registerHook('leftColumn') && $this->registerHook('rightColumn') && $this->registerHook('leftColumn') && $this->registerHook('rightColumn') &&
$this->registerHook('header') && $this->registerHook('footer')); $this->registerHook('header') && $this->registerHook('footer') && $this->registerHook('actionShopDataDuplication'));
} }
public function initToolbar() public function initToolbar()