summaryrefslogtreecommitdiff
path: root/maintenance/checkImages.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-06-10 13:00:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2009-06-10 13:00:47 +0200
commit72e90545454c0e014318fa3c81658e035aac58c1 (patch)
tree9212e3f46868989c4d57ae9a5c8a1a80e4dc0702 /maintenance/checkImages.php
parent565a0ccc371ec1a2a0e9b39487cbac18e6f60e25 (diff)
applying patch to version 1.15.0
Diffstat (limited to 'maintenance/checkImages.php')
-rw-r--r--maintenance/checkImages.php8
1 files changed, 7 insertions, 1 deletions
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;