Remove evil @
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 30 Aug 2011 20:44:33 +0000 (20:44 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 30 Aug 2011 20:44:33 +0000 (20:44 +0000)
maintenance/checkImages.php

index 96b93f2..484217d 100644 (file)
@@ -49,7 +49,9 @@ class CheckImages extends Maintenance {
                                        $this->output( "{$row->img_name}: not locally accessible\n" );
                                        continue;
                                }
-                               $stat = @stat( $file->getPath() );
+                               wfSuppressWarnings();
+                               $stat = stat( $file->getPath() );
+                               wfRestoreWarnings();
                                if ( !$stat ) {
                                        $this->output( "{$row->img_name}: missing\n" );
                                        continue;