summaryrefslogtreecommitdiff
path: root/maintenance/checkImages.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/checkImages.php')
-rw-r--r--maintenance/checkImages.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/checkImages.php b/maintenance/checkImages.php
index 96b93f22..484217d9 100644
--- a/maintenance/checkImages.php
+++ b/maintenance/checkImages.php
@@ -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;