Fix typo in trunk as in branch (r103778)
[lhc/web/wiklou.git] / maintenance / checkImages.php
index fa06461..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;
@@ -80,4 +82,4 @@ class CheckImages extends Maintenance {
 }
 
 $maintClass = "CheckImages";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );