From 6f4de596c6f26224f6d3fd842a14dbd43e7a5ebd Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 23 Nov 2012 19:01:26 +0100 Subject: [PATCH] [-] CORE : fixed bug #PSCFV-5536 - Layout for index controller is broken --- classes/Dispatcher.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index 8fabc3853..de7bb9c73 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -243,7 +243,6 @@ class DispatcherCore $this->getController(); if (!$this->controller) $this->controller = $this->default_controller; - // Dispatch with right front controller switch ($this->front_controller) { @@ -642,10 +641,13 @@ class DispatcherCore * @return string */ public function getController() - { + { if ($this->controller) + { + $_GET['controller'] = $this->controller; return $this->controller; - + } + $controller = Tools::getValue('controller'); if (isset($controller) && is_string($controller) && preg_match('/^([0-9a-z_-]+)\?(.*)=(.*)$/Ui', $controller, $m))