// improve exception
This commit is contained in:
1 parent
0d76af7f41
commit
159d0b3904
1 file changed
+3
-9
@@ -94,17 +94,11 @@ try
|
|||||||
{
|
{
|
||||||
$context->shop = Shop::initialize();
|
$context->shop = Shop::initialize();
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch (PrestaShopException $e)
|
||||||
{
|
{
|
||||||
header('HTTP/1.1 503 temporarily overloaded');
|
$e->displayMessage();
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
define('_THEME_NAME_', $context->shop->getTheme());
|
define('_THEME_NAME_', $context->shop->getTheme());
|
||||||
define('__PS_BASE_URI__', $context->shop->getBaseURI());
|
define('__PS_BASE_URI__', $context->shop->getBaseURI());
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user