From dfe31bfd2747aacef82351a5b1605054a1028334 Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Fri, 15 Apr 2011 11:19:13 +0000 Subject: [PATCH] * added E_DEPRECATED into wfSupressWarnings merge into 1.17 if required PHP version will be 5.3+ --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3053553074..0437bd5735 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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; } -- 2.20.1