Skip to content

Commit

Permalink
Properly increase the index counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bovender committed Apr 7, 2021
1 parent 0fd1561 commit 749211f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

For changes prior to version 6.0.0, please see [`NEWS.old`](news.old).

## Unreleased

### Fixed

- Fixed a regression concerning `linktitles-cli` progress display that was
introduced in v8.0.0.

## [8.0.0][] - 2021-04-06

### Changed
Expand Down
1 change: 1 addition & 0 deletions linktitles-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ private function allPages( $index = 0 ) {
foreach ( $res as $row ) {
$title = \Title::makeTitleSafe( $row->page_namespace, $row->page_title );
$numProcessed += 1;
$index += 1;
$this->output( sprintf( "\rPage #%d (%02.0f%%) ", $index, $numProcessed / $numPages * 100 ) );
Extension::processPage( $title, $context );
}
Expand Down

0 comments on commit 749211f

Please sign in to comment.