// Fix theme retrocompatibility (contact-form + displayHeader)

This commit is contained in:
rMalie
2012-02-21 15:29:05 +00:00
parent e6cefb2da1
commit b88a546f19
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -247,6 +247,8 @@ class DispatcherCore
$controllers['authentication'] = $controllers['auth'];
if (isset($controllers['compare']))
$controllers['productscomparison'] = $controllers['compare'];
if (isset($controllers['contact']))
$controllers['contactform'] = $controllers['contact'];
if (!isset($controllers[$this->controller]))
$this->controller = 'pagenotfound';
+2
View File
@@ -435,6 +435,8 @@ class FrontControllerCore extends Controller
$this->context->smarty->assign(array(
'HOOK_HEADER' => $hook_header,
'HOOK_TOP' => Hook::exec('displayTop'),
'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
));
$this->display_header = $display;