Merge pull request #782 from 202-ecommerce/development

[*] FO : Added new Maintenance Hook
This commit is contained in:
Damien Metzger committed 2013-10-02 06:07:42 -07:00
commit 6974a88b59
3 files changed
+9

No files matched your search

+3
View File
@@ -578,6 +578,9 @@ class FrontControllerCore extends Controller
header('HTTP/1.1 503 temporarily overloaded');
$this->context->smarty->assign($this->initLogoAndFavicon());
$this->context->smarty->assign(array(
'HOOK_MAINTENANCE' => Hook::exec('displayMaintenance', array()),
));
$template_dir = ($this->context->getMobileDevice() == true ? _PS_THEME_MOBILE_DIR_ : _PS_THEME_DIR_);
$this->smartyOutputContent($template_dir.'maintenance.tpl');