r92103 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92102‎ | r92103 | r92104 >
Date:22:01, 13 July 2011
Author:catrope
Status:ok
Tags:
Comment:
ArticleFeedback: Make population script work when run with tasks in a different order too
Modified paths:
  • /trunk/extensions/ArticleFeedback/populateAFStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/populateAFStatistics.php
@@ -192,6 +192,10 @@
193193 $count = 0;
194194 foreach( $problems as $page_id ) {
195195 $page = $this->pages->getPage( $page_id );
 196+ // calculate the rating averages if they haven't already been calculated
 197+ if ( !count( $page->rating_averages )) {
 198+ $page->calculateRatingAverages();
 199+ }
196200 $rows[] = array(
197201 'afs_page_id' => $page_id,
198202 'afs_orderable_data' => $page->overall_average,

Status & tagging log