[-] MO : #PSTEST-280 - Removed old-way method (deprecated) + fixed problem with cartRules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12207 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -53,6 +53,8 @@ class FrontControllerCore extends Controller
|
||||
public $display_column_right = true;
|
||||
|
||||
public static $initialized = false;
|
||||
|
||||
protected $page_name = null;
|
||||
|
||||
protected static $currentCustomerGroups;
|
||||
|
||||
@@ -235,7 +237,9 @@ class FrontControllerCore extends Controller
|
||||
|
||||
// Are we in a payment module
|
||||
$module_name = Tools::getValue('module');
|
||||
if (Tools::getValue('controller') == 'module' && $module_name != '' && new $module_name() instanceof PaymentModule)
|
||||
if (!is_null($this->page_name))
|
||||
$page_name = $this->page_name;
|
||||
else if (Tools::getValue('controller') == 'module' && $module_name != '' && new $module_name() instanceof PaymentModule)
|
||||
$page_name = 'module-payment-submit';
|
||||
// Are we in a module
|
||||
else if (preg_match('#^'.preg_quote($this->context->shop->getPhysicalURI(), '#').'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))
|
||||
|
||||
Reference in New Issue
Block a user