[-] FO: Fix #PSCFV-5181

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17925 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-23 13:34:38 +00:00
parent 1189a53427
commit b7a6becb73
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -604,7 +604,12 @@ class FrontControllerCore extends Controller
if (!in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP'))))
{
header('HTTP/1.1 503 temporarily overloaded');
$this->context->smarty->assign('favicon_url', _PS_IMG_.Configuration::get('PS_FAVICON'));
$this->context->smarty->assign(array(
'favicon_url' => _PS_IMG_.Configuration::get('PS_FAVICON'),
'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'),
'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'),
'logo_url' => _PS_IMG_.Configuration::get('PS_LOGO').'?'.Configuration::get('PS_IMG_UPDATE_TIME')
));
$template_dir = ($this->context->getMobileDevice() == true ? _PS_THEME_MOBILE_DIR_ : _PS_THEME_DIR_);
$this->smartyOutputContent($template_dir.'maintenance.tpl');
+1 -1
View File
@@ -41,7 +41,7 @@
</head>
<body>
<div id="maintenance">
<p><img src="{$content_dir}img/logo.jpg" alt="logo" /><br /><br /></p>
<p><img src="{$logo_url}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}"{/if} alt="logo" /><br /><br /></p>
<p id="message">
{l s='In order to perform site maintenance, our online shop has shut down temporarily.'}<br /><br />
{l s='We apologize for the inconvenience and ask that you please try again later.'}