From 2a449daca32f95b12ce8aad91be8d6be1b51e93e Mon Sep 17 00:00:00 2001 From: dMetzger Date: Thu, 13 Sep 2012 07:21:06 +0000 Subject: [PATCH] // Moved some header() functions #PSCFV-4022 --- controllers/admin/AdminThemesController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 0bd162d7c..60153059e 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -96,6 +96,10 @@ class AdminThemesControllerCore extends AdminController public function init() { + // No cache for auto-refresh uploaded logo + header('Cache-Control: no-cache, must-revalidate'); + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); + parent::init(); $this->can_display_themes = (!Shop::isFeatureActive() || Shop::getContext() == Shop::CONTEXT_SHOP) ? true : false; @@ -357,12 +361,9 @@ class AdminThemesControllerCore extends AdminController if (file_exists(_PS_IMG_DIR_.'logo.jpg')) { list($width, $height, $type, $attr) = getimagesize(_PS_IMG_DIR_.Configuration::get('PS_LOGO')); - Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width)); Configuration::updateValue('SHOP_LOGO_HEIGHT', (int)round($height)); + Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width)); } - // No cache for auto-refresh uploaded logo - header('Cache-Control: no-cache, must-revalidate'); - header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); $this->content .= $content; return parent::initContent();