Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php |
— | — | @@ -23,8 +23,6 @@ |
24 | 24 | |
25 | 25 | // Query the latest ratings by this user for this page, |
26 | 26 | // possibly for an older revision |
27 | | - // TODO: Make this query saner once $wgArticleAssessmentRatingCount has been redone |
28 | | - // TODO:Refactor out...? |
29 | 27 | $res = $dbr->select( |
30 | 28 | 'article_assessment', |
31 | 29 | array( 'aa_rating_id', 'aa_rating_value', 'aa_revision' ), |
— | — | @@ -64,7 +62,7 @@ |
65 | 63 | $thisRating = $params["r{$rating}"]; |
66 | 64 | } |
67 | 65 | |
68 | | - $this->insertPageRating( $pageId, $i, ( $thisRating - $lastRating ), |
| 66 | + $this->insertPageRating( $pageId, $rating, ( $thisRating - $lastRating ), |
69 | 67 | ( $lastRating === false && $thisRating !== false ) |
70 | 68 | ); |
71 | 69 | |