[*] MO : Remove calls to isRegisteredInHook in crossselling and productscategory

This commit is contained in:
gRoussac committed 2013-11-11 00:36:17 +01:00
1 parent 7e93b2cffd
commit 8dd951c2df
4 files changed
+22 -6

No files matched your search

-3
View File
@@ -43,9 +43,6 @@ class CrossSelling extends Module
$this->displayName = $this->l('Cross Selling'); $this->displayName = $this->l('Cross Selling');
$this->description = $this->l('Customers who bought this product also bought:'); $this->description = $this->l('Customers who bought this product also bought:');
if (!$this->isRegisteredInHook('header'))
$this->registerHook('header');
} }
public function install() public function install()
@@ -0,0 +1,11 @@
<?php
if (!defined('_PS_VERSION_'))
exit;
function upgrade_module_0_8($object)
{
if (!$object->isRegisteredInHook('header'))
return $object->registerHook('header');
return true;
}
@@ -43,9 +43,6 @@ class productsCategory extends Module
$this->displayName = $this->l('Products Category'); $this->displayName = $this->l('Products Category');
$this->description = $this->l('Display products of the same category on the product page.'); $this->description = $this->l('Display products of the same category on the product page.');
if (!$this->isRegisteredInHook('header'))
$this->registerHook('header');
} }
public function install() public function install()
@@ -0,0 +1,11 @@
<?php
if (!defined('_PS_VERSION_'))
exit;
function upgrade_module_1_5($object)
{
if (!$object->isRegisteredInHook('header'))
return $object->registerHook('header');
return true;
}