X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=578a226c9109de495f21b9551737adc69afb8071;hp=9f3552a6782894e3b01dc6ebd0f768bf1cf0e378;hb=fb79f30319b9ad2a7eb0f5f4d1668143ec8f963e;hpb=f494883ac2f93bc3864287478b31a84a318f2f07 diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 9f3552a678..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 { @@ -178,7 +178,6 @@ class RefreshLinks extends Maintenance { $this->output( "Starting from page_id $start of $end.\n" ); for ( $id = $start; $id <= $end; $id++ ) { - if ( !( $id % self::REPORTING_INTERVAL ) ) { $this->output( "$id\n" ); wfWaitForSlaves(); @@ -191,7 +190,6 @@ class RefreshLinks extends Maintenance { $this->output( "Starting from page_id $start of $end.\n" ); for ( $id = $start; $id <= $end; $id++ ) { - if ( !( $id % self::REPORTING_INTERVAL ) ) { $this->output( "$id\n" ); wfWaitForSlaves();