r72559 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72558‎ | r72559 | r72560 >
Date:22:31, 7 September 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r72549, $wgArticleAssessmentRatingCount doesn't exist, use count( $wgArticleAssessmentRatings )
Modified paths:
  • /trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php
@@ -20,6 +20,8 @@
2121 }
2222
2323 $dbr = wfGetDB( DB_SLAVE );
 24+
 25+ global $wgArticleAssessmentRatings;
2426
2527 // Query the latest ratings by this user for this page,
2628 // possibly for an older revision
@@ -39,7 +41,7 @@
4042 __METHOD__,
4143 array(
4244 'ORDER BY' => 'aa_revision DESC',
43 - 'LIMIT' => $wgArticleAssessmentRatingCount,
 45+ 'LIMIT' => count( $wgArticleAssessmentRatings ),
4446 )
4547 );
4648

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72549ArticleAssessmentPilot: Minor fixes for action=articleassessment module...catrope20:30, 7 September 2010

Status & tagging log