From 159d0b39044f638c194e4a7cbf0779520b30ddb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 26 Jul 2013 19:15:37 +0200 Subject: [PATCH] // improve exception --- config/config.inc.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config/config.inc.php b/config/config.inc.php index 21fb9b780..763f3a135 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -94,17 +94,11 @@ try { $context->shop = Shop::initialize(); } -catch(Exception $e) +catch (PrestaShopException $e) { - header('HTTP/1.1 503 temporarily overloaded'); - - define('_PS_SMARTY_DIR_', _PS_TOOL_DIR_.'smarty/'); - require_once(_PS_SMARTY_DIR_.'Smarty.class.php'); - $context->smarty = new Smarty(); - $context->smarty->display('error500.html'); - - exit; + $e->displayMessage(); } + define('_THEME_NAME_', $context->shop->getTheme()); define('__PS_BASE_URI__', $context->shop->getBaseURI());