Index: trunk/extensions/ArticleAssessmentPilot/api/ApiQueryArticleAssessment.php |
— | — | @@ -96,8 +96,6 @@ |
97 | 97 | |
98 | 98 | //Only can actually be "stale" if the user has rated the article before |
99 | 99 | if ( $params['userrating'] && $userRatedArticle ) { |
100 | | - $revid = isset( $params['revid'] ) ? $params['revid'] : $ratings[$pageId]['revid']; |
101 | | - |
102 | 100 | $dbr = wfGetDb( DB_SLAVE ); |
103 | 101 | |
104 | 102 | global $wgArticleAssessmentStaleCount; |
— | — | @@ -107,7 +105,7 @@ |
108 | 106 | 'COUNT(*) AS norevs', |
109 | 107 | array( |
110 | 108 | 'rev_page' => $params['pageid'], |
111 | | - 'rev_id > ' . $revid |
| 109 | + 'rev_id > ' . $ratings[$pageId]['revid'] |
112 | 110 | ), |
113 | 111 | __METHOD__, |
114 | 112 | array ( 'LIMIT', $wgArticleAssessmentStaleCount + 1 ) |