Fix undefined $max when doing --dfn-only
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 13 Nov 2010 16:32:40 +0000 (16:32 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 13 Nov 2010 16:32:40 +0000 (16:32 +0000)
maintenance/refreshLinks.php

index 96e87a2..d4eae46 100644 (file)
@@ -35,10 +35,10 @@ class RefreshLinks extends Maintenance {
        }
 
        public function execute() {
+               $max = $this->getOption( 'm', 0 );
                if ( !$this->hasOption( 'dfn-only' ) ) {
                        $start = $this->getArg( 0, 1 );
                        $new = $this->getOption( 'new-only', false );
-                       $max = $this->getOption( 'm', false );
                        $end = $this->getOption( 'e', 0 );
                        $redir = $this->getOption( 'redirects-only', false );
                        $oldRedir = $this->getOption( 'old-redirects-only', false );