Index: trunk/extensions/ArticleAssessmentPilot/api/ApiQueryArticleAssessment.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | |
28 | 28 | if ( $params['userrating'] ) { |
29 | 29 | global $wgUser; |
30 | | - |
| 30 | + |
31 | 31 | $leftJoinConds = array( |
32 | 32 | 'aa_page_id=aap_page_id', |
33 | 33 | 'aa_rating_id=aap_rating_id', |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | //Only can actually be "stale" if the user has rated the article before |
97 | 97 | if ( $params['userrating'] && $userRatedArticle ) { |
98 | 98 | $dbr = wfGetDb( DB_SLAVE ); |
99 | | - |
| 99 | + |
100 | 100 | global $wgArticleAssessmentStaleCount; |
101 | 101 | |
102 | 102 | $res = $dbr->select( |
Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php |
— | — | @@ -122,7 +122,7 @@ |
123 | 123 | */ |
124 | 124 | private function insertUserRatings( $pageId, $revisionId, $user, $token, $ratingId, $ratingValue ) { |
125 | 125 | $dbw = wfGetDB( DB_MASTER ); |
126 | | - |
| 126 | + |
127 | 127 | $timestamp = $dbw->timestamp(); |
128 | 128 | |
129 | 129 | $dbw->insert( |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | ), |
181 | 181 | 'anontoken' => null, |
182 | 182 | ); |
183 | | - |
| 183 | + |
184 | 184 | foreach( $wgArticleAssessmentRatings as $rating ) { |
185 | 185 | $ret["r{$rating}"] = array( |
186 | 186 | ApiBase::PARAM_TYPE => 'integer', |
— | — | @@ -209,7 +209,7 @@ |
210 | 210 | 'Submit article assessments' |
211 | 211 | ); |
212 | 212 | } |
213 | | - |
| 213 | + |
214 | 214 | public function mustBePosted() { |
215 | 215 | return true; |
216 | 216 | } |