Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2011-01-31 21:23:56 +0300
committerrobocoder <anthon.pang@gmail.com>2011-01-31 21:23:56 +0300
commit97e425027aee2acc50ba54afad1a16f0eca27161 (patch)
tree9e108330bbea8dc8a1efc875292c99b1a039fda4 /index.php
parentf71da77c01b2c8222575a60daaa10f7efc7a1409 (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.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/index.php b/index.php
index b0f5ec203a..f648f67c6c 100644
--- a/index.php
+++ b/index.php
@@ -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);