From 8a4660a378c083bb9d5b06a6edf798b55689807d Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 27 Sep 2011 15:28:41 +0000 Subject: [PATCH] // Fix bugs on frontControllers git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8815 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/FrontController.php | 9 +++++++-- controllers/front/CategoryController.php | 7 +------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/classes/FrontController.php b/classes/FrontController.php index 9dc9f84a6..23454db7b 100755 --- a/classes/FrontController.php +++ b/classes/FrontController.php @@ -92,7 +92,7 @@ class FrontControllerCore extends Controller $this->displayHeader(false); $this->displayFooter(false); } - + ob_start(); // Switch language if needed and init cookie language @@ -353,7 +353,7 @@ class FrontControllerCore extends Controller $this->preProcess(); } }*/ - + //$this->preProcess(); } @@ -362,6 +362,11 @@ class FrontControllerCore extends Controller } public function initContent() + { + $this->process(); + } + + public function process() { } diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index ed18b0519..8807b2e4d 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -43,12 +43,6 @@ class CategoryControllerCore extends FrontController $this->addJS(_THEME_JS_DIR_.'products-comparison.js'); } - public function displayHeader($display = true) - { - parent::displayHeader(); - $this->productSort(); - } - public function canonicalRedirection($canonicalURL = '') { if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category)) @@ -143,6 +137,7 @@ class CategoryControllerCore extends FrontController } } + $this->productSort(); $this->context->smarty->assign(array( 'allow_oosp' => (int)(Configuration::get('PS_ORDER_OUT_OF_STOCK')), 'comparator_max_item' => (int)(Configuration::get('PS_COMPARATOR_MAX_ITEM')),