* added E_DEPRECATED into wfSupressWarnings
authorJure Kajzer <freakolowsky@users.mediawiki.org>
Fri, 15 Apr 2011 11:19:13 +0000 (11:19 +0000)
committerJure Kajzer <freakolowsky@users.mediawiki.org>
Fri, 15 Apr 2011 11:19:13 +0000 (11:19 +0000)
merge into 1.17 if required PHP version will be 5.3+

includes/GlobalFunctions.php

index 3053553..0437bd5 100644 (file)
@@ -1777,7 +1777,7 @@ function wfSuppressWarnings( $end = false ) {
                }
        } else {
                if ( !$suppressCount ) {
-                       $originalLevel = error_reporting( E_ALL & ~( E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE ) );
+                       $originalLevel = error_reporting( E_ALL & ~( E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_DEPRECATED ) );
                }
                ++$suppressCount;
        }