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

This commit is contained in:
gRoussac
2013-11-11 00:36:17 +01:00
parent 7e93b2cffd
commit 8dd951c2df
4 changed files with 22 additions and 6 deletions
-3
View File
@@ -43,9 +43,6 @@ class CrossSelling extends Module
$this->displayName = $this->l('Cross Selling');
$this->description = $this->l('Customers who bought this product also bought:');
if (!$this->isRegisteredInHook('header'))
$this->registerHook('header');
}
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->description = $this->l('Display products of the same category on the product page.');
if (!$this->isRegisteredInHook('header'))
$this->registerHook('header');
}
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;
}