aboutsummaryrefslogtreecommitdiffstats
path: root/include/config_default.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-10-17 20:36:18 +0000
committerplegall <plg@piwigo.org>2013-10-17 20:36:18 +0000
commit666a204d16013ae0e5f81028c6622ccfe12fb81d (patch)
treea56569ac4b63ce74fa11e249231fc93b95f6e86c /include/config_default.inc.php
parent2faa7204e94e7524930ea31d7f85d4b4d5b33346 (diff)
bug 2974: do not display deprecated errors on a stable branch
git-svn-id: http://piwigo.org/svn/branches/2.5@24969 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/config_default.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 2e7a13688..37422e622 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -464,7 +464,7 @@ $conf['template_combine_files'] = true;
// this permit to show the php errors reporting (see INI 'error_reporting'
// for possible values)
// gives an empty value '' to deactivate
-$conf['show_php_errors'] = E_ALL;
+$conf['show_php_errors'] = version_compare(PHP_VERSION, '5.3.0', '<') ? E_ALL : E_ALL ^ E_DEPRECATED;
// enable log for i derivative script
$conf['enable_i_log'] = false;