mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
2
NEWS.md
2
NEWS.md
@ -13,6 +13,8 @@ For changes prior to version 6.0.0, please see [`NEWS.old`](news.old).
|
|||||||
|
|
||||||
- Fixed a regression concerning `linktitles-cli` progress display that was
|
- Fixed a regression concerning `linktitles-cli` progress display that was
|
||||||
introduced in v8.0.0.
|
introduced in v8.0.0.
|
||||||
|
- Prevent a division-by-zero error that could occur on the LinkTitles special
|
||||||
|
page.
|
||||||
|
|
||||||
## [8.0.0][] - 2021-04-06
|
## [8.0.0][] - 2021-04-06
|
||||||
|
|
||||||
|
@ -247,7 +247,14 @@ EOF
|
|||||||
* @return undefined
|
* @return undefined
|
||||||
*/
|
*/
|
||||||
private function addCompletedInfo( &$output, $start, $end, $reloads ) {
|
private function addCompletedInfo( &$output, $start, $end, $reloads ) {
|
||||||
|
if ( $reloads > 0 ) {
|
||||||
$pagesPerReload = sprintf( '%0.1f', $end / $reloads );
|
$pagesPerReload = sprintf( '%0.1f', $end / $reloads );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$pagesPerReload = sprintf( '%0.1f', $end );
|
||||||
|
}
|
||||||
|
|
||||||
$output->addWikiMsg( 'linktitltes-special-completed-info', $end,
|
$output->addWikiMsg( 'linktitltes-special-completed-info', $end,
|
||||||
$config->specialPageReloadAfter, $reloads, $pagesPerReload
|
$config->specialPageReloadAfter, $reloads, $pagesPerReload
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user