aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/startup.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-03-15 22:46:06 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-15 22:46:06 -0400
commit71afba0dedd2fcc4e478e191acc23277df8209c9 (patch)
tree7068f2a38c8cac36b9f3942cff69f7447d077466 /phpBB/includes/startup.php
parentb652e1a1bb31512fad1cf315f7c4d475141191f9 (diff)
downloadforums-71afba0dedd2fcc4e478e191acc23277df8209c9.tar
forums-71afba0dedd2fcc4e478e191acc23277df8209c9.tar.gz
forums-71afba0dedd2fcc4e478e191acc23277df8209c9.tar.bz2
forums-71afba0dedd2fcc4e478e191acc23277df8209c9.tar.xz
forums-71afba0dedd2fcc4e478e191acc23277df8209c9.zip
[task/php54] Refactor error_reporting call slightly.
Separate error level assignment into a variable in this commit so that the only difference between Olympus and Ascraeus is the addition of logic altering $level. PHPBB3-10615
Diffstat (limited to 'phpBB/includes/startup.php')
-rw-r--r--phpBB/includes/startup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php
index bbe2f127f1..178fb30435 100644
--- a/phpBB/includes/startup.php
+++ b/phpBB/includes/startup.php
@@ -19,7 +19,8 @@ if (!defined('E_DEPRECATED'))
{
define('E_DEPRECATED', 8192);
}
-error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
+$level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
+error_reporting($level);
/*
* Remove variables created by register_globals from the global scope