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: Phe: Looks good to me, but someone else must approve Tpt: 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/141299 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: master Gerrit-Owner: Tpt <thoma...@hotmail.fr> Gerrit-Reviewer: Phe <phil...@free.fr> Gerrit-Reviewer: Tpt <thoma...@hotmail.fr> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits