If --only and we've had a hit, no need to continue iteration over $wgQueryPages
authorReedy <reedy@wikimedia.org>
Thu, 15 Aug 2013 22:19:02 +0000 (23:19 +0100)
committerIAlex <codereview@emsenhuber.ch>
Thu, 22 Aug 2013 17:20:00 +0000 (17:20 +0000)
--only only accepts one "page"

Change-Id: I561a099cd6ec8a19e8931f6aa5304fc38a474e58

maintenance/updateSpecialPages.php

index cf6c0b0..3432cb2 100644 (file)
@@ -121,6 +121,9 @@ class UpdateSpecialPages extends Maintenance {
                                } else {
                                        $this->output( "cheap, skipped\n" );
                                }
+                               if ( $this->hasOption( 'only' ) ) {
+                                       break;
+                               }
                        }
                }
        }