// Modify is_a() with instanceof
This commit is contained in:
1 parent
f5d4fbccfd
commit
7827d02eaf
1 file changed
+1
-1
@@ -269,7 +269,7 @@ class FrontControllerCore extends Controller
|
|||||||
$page_name = $this->page_name;
|
$page_name = $this->page_name;
|
||||||
elseif (!empty($this->php_self))
|
elseif (!empty($this->php_self))
|
||||||
$page_name = $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';
|
$page_name = 'module-payment-submit';
|
||||||
// @retrocompatibility Are we in a module ?
|
// @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))
|
elseif (preg_match('#^'.preg_quote($this->context->shop->physical_uri, '#').'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))
|
||||||
|
|||||||
Reference in new issue
Block a user