// Display exception in admin regardless mode dev
This commit is contained in:
1 parent
2f3799abb8
commit
53f1e8fcbb
1 file changed
+4
-3
@@ -19,7 +19,8 @@
|
|||||||
* needs please refer to http://www.prestashop.com for more information.
|
* needs please refer to http://www.prestashop.com for more information.
|
||||||
*
|
*
|
||||||
* @author PrestaShop SA <contact@prestashop.com>
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
* @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)
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*/
|
*/
|
||||||
@@ -34,7 +35,7 @@ class PrestaShopExceptionCore extends Exception
|
|||||||
*/
|
*/
|
||||||
public function displayMessage()
|
public function displayMessage()
|
||||||
{
|
{
|
||||||
if (_PS_MODE_DEV_)
|
if (_PS_MODE_DEV_ || defined('_PS_ADMIN_DIR_'))
|
||||||
{
|
{
|
||||||
// Display error message
|
// Display error message
|
||||||
echo '<style>
|
echo '<style>
|
||||||
@@ -140,4 +141,4 @@ class PrestaShopExceptionCore extends Exception
|
|||||||
}
|
}
|
||||||
echo '</pre>';
|
echo '</pre>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user