diff --git a/config/config.inc.php b/config/config.inc.php index 80d31e32a..9e1213239 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -26,8 +26,17 @@ */ /* Debug only */ -@ini_set('display_errors', 'on'); -define('_PS_DEBUG_SQL_', true); +define('_PS_MODE_DEV_', true); +if (_PS_MODE_DEV_) +{ + @ini_set('display_errors', 'on'); + define('_PS_DEBUG_SQL_', true); +} +else +{ + @ini_set('display_errors', 'off'); + define('_PS_DEBUG_SQL_', false); +} $start_time = microtime(true); @@ -184,4 +193,4 @@ define('_PS_OS_WS_PAYMENT_', Configuration::get('PS_OS_WS_PAYMENT')); /* Get smarty */ require_once(dirname(__FILE__).'/smarty.config.inc.php'); -Context::getContext()->smarty = $smarty; \ No newline at end of file +Context::getContext()->smarty = $smarty; diff --git a/config/defines.inc.php b/config/defines.inc.php index eda5ae15e..6bb0406fc 100755 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -25,7 +25,6 @@ * International Registered Trademark & Property of PrestaShop SA */ -define('_PS_MODE_DEV_', true); define('_PS_DEBUG_PROFILING_', false); define('_PS_MODE_DEMO_', false);