X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=578a226c9109de495f21b9551737adc69afb8071;hp=facc5064c1bb18d1a4e59dd945b079a459e24d15;hb=fb79f30319b9ad2a7eb0f5f4d1668143ec8f963e;hpb=4fad94948359ab67e312355534977138754c123b diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index facc5064c1..578a226c91 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -72,13 +72,13 @@ class RefreshLinks extends Maintenance { if ( !$title ) { $this->error( "'$category' is an invalid category name!\n", true ); } - $this->refreshCategory( $category ); + $this->refreshCategory( $title ); } elseif ( ( $category = $this->getOption( 'tracking-category', false ) ) !== false ) { $this->refreshTrackingCategory( $category ); } elseif ( !$this->hasOption( 'dfn-only' ) ) { - $new = $this->getOption( 'new-only', false ); - $redir = $this->getOption( 'redirects-only', false ); - $oldRedir = $this->getOption( 'old-redirects-only', false ); + $new = $this->hasOption( 'new-only' ); + $redir = $this->hasOption( 'redirects-only' ); + $oldRedir = $this->hasOption( 'old-redirects-only' ); $this->doRefreshLinks( $start, $new, $end, $redir, $oldRedir ); $this->deleteLinksFromNonexistent( null, null, $this->mBatchSize, $dfnChunkSize ); } else {