[*] MO : Remove calls to isRegisteredInHook in crossselling and productscategory
This commit is contained in:
@@ -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()
|
||||
|
||||
11
modules/crossselling/upgrade/install-0.8.php
Normal file
11
modules/crossselling/upgrade/install-0.8.php
Normal file
@@ -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()
|
||||
|
||||
11
modules/productscategory/upgrade/install-1.5.php
Normal file
11
modules/productscategory/upgrade/install-1.5.php
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user