From a6389cb7ef6477bcff23ac68a591f5bf0bc6a907 Mon Sep 17 00:00:00 2001 From: PrestaEdit Date: Wed, 28 Nov 2012 01:26:53 +0100 Subject: [PATCH] [+] BO: modifiy width and height configuration for the mobile logo --- controllers/admin/AdminThemesController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 0ac54ff05..eaa87e60c 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -408,6 +408,12 @@ class AdminThemesControllerCore extends AdminController Configuration::updateValue('SHOP_LOGO_HEIGHT', (int)round($height)); Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width)); } + if (file_exists(_PS_IMG_DIR_.'logo_mobile.jpg')) + { + list($width, $height, $type, $attr) = getimagesize(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MOBILE')); + Configuration::updateValue('SHOP_LOGO_MOBILE_HEIGHT', (int)round($height)); + Configuration::updateValue('SHOP_LOGO_MOBILE_WIDTH', (int)round($width)); + } $this->content .= $content; return parent::initContent();