From 60e99d6b66de144724749fa766c4c37a8e456c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 10 Dec 2012 10:47:41 +0100 Subject: [PATCH 1/3] // Display exception in admin regardless mode dev --- classes/exception/PrestaShopException.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/exception/PrestaShopException.php b/classes/exception/PrestaShopException.php index 4db08c4cd..237ed005a 100644 --- a/classes/exception/PrestaShopException.php +++ b/classes/exception/PrestaShopException.php @@ -19,7 +19,8 @@ * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA -* @copyright 2007-2012 PrestaShop SA +* @copyright 2007-2012 PrestaShop SA + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ @@ -34,7 +35,7 @@ class PrestaShopExceptionCore extends Exception */ public function displayMessage() { - if (_PS_MODE_DEV_) + if (_PS_MODE_DEV_ || defined('_PS_ADMIN_DIR_')) { // Display error message echo '