Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | |
103 | 103 | |
104 | 104 | $moodbarStat = MoodBarUtil::getMoodBarTypeStats(); |
105 | | - $moodbarStatMsg = wfMessage( 'moodbar-type-stats' )->params( $moodbarStat['happy'], $moodbarStat['sad'], $moodbarStat['confused'] )->escaped(); |
| 105 | + $moodbarStatMsg = wfMessage( 'moodbar-type-stats' )->numParams( $moodbarStat['happy'], $moodbarStat['sad'], $moodbarStat['confused'] )->escaped(); |
106 | 106 | $feedbackDashboardDescription = wfMessage( 'moodbar-feedback-description' )->params( $wgSitename ); // don't escape because there is html |
107 | 107 | |
108 | 108 | $myResponseFilter = ''; |
— | — | @@ -267,7 +267,8 @@ |
268 | 268 | * @return html string |
269 | 269 | */ |
270 | 270 | protected static function buildLeaderBoardElement() { |
271 | | - |
| 271 | + global $wgLang; |
| 272 | + |
272 | 273 | $topResponders = MoodBarUtil::getTopResponders(); |
273 | 274 | |
274 | 275 | $html = ''; |
— | — | @@ -277,7 +278,7 @@ |
278 | 279 | $user = User::newFromRow( $row ); |
279 | 280 | if ( $user && !$user->isAnon() ) { |
280 | 281 | $html .= '<li>' . Linker::userLink( $user->getId(), htmlspecialchars( $user->getName() ) ) . |
281 | | - '<span>' . $row->number . '</span></li>'; |
| 282 | + '<span>' . $wgLang->formatNum( intval( $row->number ) ) . '</span></li>'; |
282 | 283 | } |
283 | 284 | } |
284 | 285 | } |