Skip to content

Commit 71afba0

Browse files
committed
[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
1 parent b652e1a commit 71afba0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpBB/includes/startup.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
{
2020
define('E_DEPRECATED', 8192);
2121
}
22-
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
22+
$level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
23+
error_reporting($level);
2324

2425
/*
2526
* Remove variables created by register_globals from the global scope

0 commit comments

Comments
 (0)