From: Chad Horohoe Date: Wed, 21 Apr 2010 13:44:53 +0000 (+0000) Subject: Use wfSuppress/RestoreWarnings instead of @ X-Git-Tag: 1.31.0-rc.0~37049 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=4124462c61efcc68f277e8f84f42ad1070a03c19;p=lhc%2Fweb%2Fwiklou.git Use wfSuppress/RestoreWarnings instead of @ --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 409d399bea..37432c8e56 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -644,7 +644,9 @@ abstract class Maintenance { } $wgShowSQLErrors = true; - @set_time_limit( 0 ); + wfSuppressWarnings(); + set_time_limit( 0 ); + wfRestoreWarnings(); ini_set( 'memory_limit', $this->memoryLimit() ); $wgProfiling = false; // only for Profiler.php mode; avoids OOM errors