From 72e90545454c0e014318fa3c81658e035aac58c1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 10 Jun 2009 13:00:47 +0200 Subject: applying patch to version 1.15.0 --- maintenance/checkImages.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'maintenance/checkImages.php') diff --git a/maintenance/checkImages.php b/maintenance/checkImages.php index 994cd5b9..378caa34 100644 --- a/maintenance/checkImages.php +++ b/maintenance/checkImages.php @@ -11,7 +11,8 @@ $numImages = 0; $numGood = 0; do { - $res = $dbr->select( 'image', '*', array( 'img_name > ' . $dbr->addQuotes( $start ) ) ); + $res = $dbr->select( 'image', '*', array( 'img_name > ' . $dbr->addQuotes( $start ) ), + 'checkImages.php', array( 'LIMIT' => $batchSize ) ); foreach ( $res as $row ) { $numImages++; $start = $row->img_name; @@ -27,6 +28,11 @@ do { continue; } + if ( $stat['mode'] & 040000 ) { + echo "{$row->img_name}: is a directory\n"; + continue; + } + if ( $stat['size'] == 0 && $row->img_size != 0 ) { echo "{$row->img_name}: truncated, was {$row->img_size}\n"; continue; -- cgit v1.2.2