diff --git a/maintenance/GenerateFancyCaptchas.php b/maintenance/GenerateFancyCaptchas.php index 9ab972b6a..220159105 100644 --- a/maintenance/GenerateFancyCaptchas.php +++ b/maintenance/GenerateFancyCaptchas.php @@ -147,7 +147,7 @@ class GenerateFancyCaptchas extends Maintenance { $tmpDir, FilesystemIterator::SKIP_DOTS ), - RecursiveIteratorIterator::CHILD_FIRST // include dirs + RecursiveIteratorIterator::LEAVES_ONLY ); $captchasGenerated = iterator_count( $iter );