From: Reedy Date: Thu, 15 Aug 2013 22:19:02 +0000 (+0100) Subject: If --only and we've had a hit, no need to continue iteration over $wgQueryPages X-Git-Tag: 1.31.0-rc.0~18912 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=33de342acf6f7499df3b7dd741c90470261da631;p=lhc%2Fweb%2Fwiklou.git If --only and we've had a hit, no need to continue iteration over $wgQueryPages --only only accepts one "page" Change-Id: I561a099cd6ec8a19e8931f6aa5304fc38a474e58 --- diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index cf6c0b0356..3432cb2070 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -121,6 +121,9 @@ class UpdateSpecialPages extends Maintenance { } else { $this->output( "cheap, skipped\n" ); } + if ( $this->hasOption( 'only' ) ) { + break; + } } } }