// Fix comment typo
This commit is contained in:
@@ -233,7 +233,7 @@ class FrontControllerCore extends Controller
|
|||||||
$page_name = Dispatcher::getInstance()->getController();
|
$page_name = Dispatcher::getInstance()->getController();
|
||||||
$page_name = (preg_match('/^[0-9]/', $page_name)) ? 'page_'.$page_name : $page_name;
|
$page_name = (preg_match('/^[0-9]/', $page_name)) ? 'page_'.$page_name : $page_name;
|
||||||
|
|
||||||
// Arf we in a module ?
|
// Are we in a module ?
|
||||||
if (preg_match('#^'.preg_quote($this->context->shop->getPhysicalURI(), '#').'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))
|
if (preg_match('#^'.preg_quote($this->context->shop->getPhysicalURI(), '#').'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))
|
||||||
$page_name = 'module-'.$m[1].'-'.str_replace(array('.php', '/'), array('', '-'), $m[2]);
|
$page_name = 'module-'.$m[1].'-'.str_replace(array('.php', '/'), array('', '-'), $m[2]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user