Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php |
— | — | @@ -20,6 +20,8 @@ |
21 | 21 | } |
22 | 22 | |
23 | 23 | $dbr = wfGetDB( DB_SLAVE ); |
| 24 | + |
| 25 | + global $wgArticleAssessmentRatings; |
24 | 26 | |
25 | 27 | // Query the latest ratings by this user for this page, |
26 | 28 | // possibly for an older revision |
— | — | @@ -39,7 +41,7 @@ |
40 | 42 | __METHOD__, |
41 | 43 | array( |
42 | 44 | 'ORDER BY' => 'aa_revision DESC', |
43 | | - 'LIMIT' => $wgArticleAssessmentRatingCount, |
| 45 | + 'LIMIT' => count( $wgArticleAssessmentRatings ), |
44 | 46 | ) |
45 | 47 | ); |
46 | 48 | |