// Address expected as parameter
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8702 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f0dde5e983
commit
56294efe91
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