diff options
author | robocoder <anthon.pang@gmail.com> | 2011-01-31 21:23:56 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-01-31 21:23:56 +0300 |
commit | 97e425027aee2acc50ba54afad1a16f0eca27161 (patch) | |
tree | 9e108330bbea8dc8a1efc875292c99b1a039fda4 /index.php | |
parent | f71da77c01b2c8222575a60daaa10f7efc7a1409 (diff) |
make it possible to override display_errors in php.ini via bootstrap.php
git-svn-id: http://dev.piwik.org/svn/trunk@3828 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -15,10 +15,7 @@ if(file_exists('bootstrap.php')) } error_reporting(E_ALL|E_NOTICE); -if(!defined('PIWIK_DISPLAY_ERRORS') || PIWIK_DISPLAY_ERRORS) -{ - @ini_set('display_errors', 1); -} +@ini_set('display_errors', (!defined('PIWIK_DISPLAY_ERRORS') || PIWIK_DISPLAY_ERRORS) ? 1 : 0); @ini_set('xdebug.show_exception_trace', 0); @ini_set('magic_quotes_runtime', 0); |