// Address expected as parameter
This commit is contained in:
1 parent
000baf6c0a
commit
5d69604026
1 file changed
+2
-2
@@ -36,6 +36,7 @@ abstract class TaxManagerModuleCore extends Module
|
|||||||
|
|
||||||
public function hookTaxManager($args)
|
public function hookTaxManager($args)
|
||||||
{
|
{
|
||||||
|
|
||||||
$class_file =_PS_MODULE_DIR_.'/'.$this->name.'/'.$this->tax_manager_class.'.php';
|
$class_file =_PS_MODULE_DIR_.'/'.$this->name.'/'.$this->tax_manager_class.'.php';
|
||||||
|
|
||||||
if (!isset($this->tax_manager_class) || !file_exists($class_file))
|
if (!isset($this->tax_manager_class) || !file_exists($class_file))
|
||||||
@@ -47,8 +48,7 @@ abstract class TaxManagerModuleCore extends Module
|
|||||||
die(Tools::displayError('Tax Manager class not found ['.$this->tax_manager_class.']'));
|
die(Tools::displayError('Tax Manager class not found ['.$this->tax_manager_class.']'));
|
||||||
|
|
||||||
$class = $this->tax_manager_class;
|
$class = $this->tax_manager_class;
|
||||||
|
if (call_user_func(array($class, 'isAvailableForThisAddress'), $args['address']))
|
||||||
if (call_user_func(array($class, 'isAvailableForThisAddress'), array($args['address'])))
|
|
||||||
return new $class();
|
return new $class();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in new issue
Block a user