r76629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76628‎ | r76629 | r76630 >
Date:16:32, 13 November 2010
Author:demon
Status:ok
Tags:
Comment:
Fix undefined $max when doing --dfn-only
Modified paths:
  • /trunk/phase3/maintenance/refreshLinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/refreshLinks.php
@@ -35,10 +35,10 @@
3636 }
3737
3838 public function execute() {
 39+ $max = $this->getOption( 'm', 0 );
3940 if ( !$this->hasOption( 'dfn-only' ) ) {
4041 $start = $this->getArg( 0, 1 );
4142 $new = $this->getOption( 'new-only', false );
42 - $max = $this->getOption( 'm', false );
4343 $end = $this->getOption( 'e', 0 );
4444 $redir = $this->getOption( 'redirects-only', false );
4545 $oldRedir = $this->getOption( 'old-redirects-only', false );

Status & tagging log