Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -321,7 +321,7 @@ |
322 | 322 | * @param object Database result |
323 | 323 | * @return array |
324 | 324 | */ |
325 | | - public function buildHighsAndLows( $result ) { |
| 325 | + public static function buildHighsAndLows( $result ) { |
326 | 326 | $highs_lows = array(); |
327 | 327 | foreach ( $result as $row ) { |
328 | 328 | $highs_lows[] = array( |
Index: trunk/extensions/ArticleFeedback/populateAFStatistics.php |
— | — | @@ -170,8 +170,8 @@ |
171 | 171 | array() |
172 | 172 | ); |
173 | 173 | // grab the article feedback special page so we can reuse the data structure building code |
174 | | - $sp = SpecialPageFactory::getPage( 'ArticleFeedback' ); |
175 | | - $highs_lows = $sp->buildHighsAndLows( $result ); |
| 174 | + // FIXME this logic should not be in the special page class |
| 175 | + $highs_lows = SpecialArticleFeedback::buildHighsAndLows( $result ); |
176 | 176 | // stash the data structure in the cache |
177 | 177 | $wgMemc->set( $key, $highs_lows, 86400 ); |
178 | 178 | $this->output( "Done\n" ); |