// Modify is_a() with instanceof

This commit is contained in:
PrestaEdit
2012-11-26 23:12:17 +01:00
parent f5d4fbccfd
commit 7827d02eaf
+1 -1
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 != '' && is_a($module_name, 'PaymentModule'))
elseif (Tools::getValue('fc') == 'module' && $module_name != '' && ($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))