From ba936103c355a6ffef4c3dcc414178c5c18472c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Tue, 7 Mar 2017 11:35:01 -0800 Subject: [PATCH] Remove entirely pointless directory iteration in GenerateFancyCaptchas Bug: T159606 Change-Id: Ic03a0e83878cd75235095a942400aca4293e791c --- maintenance/GenerateFancyCaptchas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );