Use wfSuppress/RestoreWarnings instead of @
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 21 Apr 2010 13:44:53 +0000 (13:44 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 21 Apr 2010 13:44:53 +0000 (13:44 +0000)
maintenance/Maintenance.php

index 409d399..37432c8 100644 (file)
@@ -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