r50298 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50297‎ | r50298 | r50299 >
Date:03:09, 7 May 2009
Author:aaron
Status:ok
Tags:
Comment:
Don't show users in ratinghist page if less that two people
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -620,6 +620,8 @@
621621 );
622622 // Output multi-column list
623623 $total = $res->numRows();
 624+ if( $total < 2 )
 625+ return ''; // don't give away votes that easily
624626 $columns = 4;
625627 $count = 0;
626628 $html = "<table class='fr_reader_feedback_users'><tr>";

Status & tagging log