// $module_name is a string, test not good

This commit is contained in:
Jonathan Danse
2012-11-27 09:30:04 +01:00
parent 7827d02eaf
commit 8e4d5057ae

View File

@@ -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))