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:
authormattpiwik <matthieu.aubry@gmail.com>2012-03-20 10:23:29 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-03-20 10:23:29 +0400
commitc8a09034489518c47413e8d5716b1a45721703e4 (patch)
tree59926fe9a9e1ea247b0bbe6a486c56ff88868a30 /index.php
parent53afad1b6d8968d4c6428843cae5baf258993297 (diff)
refs #3030 Honour php.ini setting.
The fact that errors are displayed is one of the key factors that help us troubleshoot users, losing error and NOTICES messages would be a lot more support pain... we still recommend power users to set it to off: http://piwik.org/security/how-to-secure-piwik/ git-svn-id: http://dev.piwik.org/svn/trunk@6068 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index bcc0f3d3eb..e3611e7ce7 100644
--- a/index.php
+++ b/index.php
@@ -16,7 +16,7 @@ if(file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php'))
}
error_reporting(E_ALL|E_NOTICE);
-@ini_set('display_errors', (defined('PIWIK_DISPLAY_ERRORS') ? PIWIK_DISPLAY_ERRORS : 0));
+@ini_set('display_errors', defined('PIWIK_DISPLAY_ERRORS') ? PIWIK_DISPLAY_ERRORS : @ini_get('display_errors'));
@ini_set('xdebug.show_exception_trace', 0);
@ini_set('magic_quotes_runtime', 0);