jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
MarkTraceur: Looks good to me, approved
jenkins-bot: Verified
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/141300
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I82390599a3ce7e52e7471623e4d5250da2c67110
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: wmf/1.24wmf10
Gerrit-Owner: Tpt <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: Phe <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Tpt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits