Tpt has uploaded a new change for review.

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

Change subject: Number of pages was wrongly set in the database
......................................................................

Number of pages was wrongly set in the database

Change-Id: I82390599a3ce7e52e7471623e4d5250da2c67110
---
M ProofreadPage.body.php
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/99/141299/1

diff --git a/ProofreadPage.body.php b/ProofreadPage.body.php
index bd58b84..79f4bbe 100644
--- a/ProofreadPage.body.php
+++ b/ProofreadPage.body.php
@@ -448,8 +448,6 @@
                $indexTitle = $index->getTitle();
                $indexId = $index->getID();
 
-               $n = 0;
-
                // read the list of pages
                $pages = array();
                $pagination = 
Context::getDefaultContext()->getPaginationFactory()->getPaginationForIndexPage(
@@ -485,7 +483,7 @@
                $n4 = ProofreadPageDbConnector::queryCount( $queryArr, 
'proofreadpage_quality4_category' );
                $n1 = $total - $n0 - $n2 - $n3 - $n4;
 
-               ProofreadIndexDbConnector::setIndexData( $n, $n0, $n1, $n2, 
$n3, $n4, $indexId );
+               ProofreadIndexDbConnector::setIndexData( 
$pagination->getNumberOfPages(), $n0, $n1, $n2, $n3, $n4, $indexId );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I82390599a3ce7e52e7471623e4d5250da2c67110
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to