From 8e4d5057ae7d9a5bcb8ea52ec8ebdfeb91f2ef4d Mon Sep 17 00:00:00 2001 From: Jonathan Danse Date: Tue, 27 Nov 2012 09:30:04 +0100 Subject: [PATCH] // $module_name is a string, test not good --- classes/controller/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index 5382f0c90..b35710e15 100755 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -269,7 +269,7 @@ class FrontControllerCore extends Controller $page_name = $this->page_name; elseif (!empty($this->php_self)) $page_name = $this->php_self; - elseif (Tools::getValue('fc') == 'module' && $module_name != '' && ($module_name instanceof PaymentModule)) + elseif (Tools::getValue('fc') == 'module' && $module_name != '' && (Module::getInstanceByName($module_name) instanceof PaymentModule)) $page_name = 'module-payment-submit'; // @retrocompatibility Are we in a module ? elseif (preg_match('#^'.preg_quote($this->context->shop->physical_uri, '#').'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))