Glaisher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/291493

Change subject: Fix count of total pages to be deleted for translation pages
......................................................................

Fix count of total pages to be deleted for translation pages

Bug: T51895
Change-Id: I24d8783f49d8082298cf57b84ac88f0583774a76
---
M tag/SpecialPageTranslationDeletePage.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/93/291493/1

diff --git a/tag/SpecialPageTranslationDeletePage.php 
b/tag/SpecialPageTranslationDeletePage.php
index 713393d..edcfcbb 100644
--- a/tag/SpecialPageTranslationDeletePage.php
+++ b/tag/SpecialPageTranslationDeletePage.php
@@ -235,13 +235,13 @@
         */
        protected function showConfirmation() {
                $out = $this->getOutput();
+               $count = 0;
 
                $out->addWikiMsg( 'pt-deletepage-intro' );
 
-               $count = 1; // Base page
-
                $out->wrapWikiMsg( '== $1 ==', 'pt-deletepage-list-pages' );
                if ( !$this->singleLanguage() ) {
+                       $count++;
                        $this->printChangeLine( $this->title );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/291493
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I24d8783f49d8082298cf57b84ac88f0583774a76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to