From 56294efe914c24e802c290b316bb0041cf499add Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Wed, 21 Sep 2011 16:19:57 +0000 Subject: [PATCH] // Address expected as parameter git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8702 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/tax/TaxManagerModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/tax/TaxManagerModule.php b/classes/tax/TaxManagerModule.php index 8587be4f8..9ffbf2d03 100644 --- a/classes/tax/TaxManagerModule.php +++ b/classes/tax/TaxManagerModule.php @@ -36,6 +36,7 @@ abstract class TaxManagerModuleCore extends Module public function hookTaxManager($args) { + $class_file =_PS_MODULE_DIR_.'/'.$this->name.'/'.$this->tax_manager_class.'.php'; 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.']')); $class = $this->tax_manager_class; - - if (call_user_func(array($class, 'isAvailableForThisAddress'), array($args['address']))) + if (call_user_func(array($class, 'isAvailableForThisAddress'), $args['address'])) return new $class(); return false;