r45003 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45002‎ | r45003 | r45004 >
Date:15:17, 24 December 2008
Author:nikerabbit
Status:ok
Tags:
Comment:
* formatNum
Modified paths:
  • /trunk/extensions/Tasks/Tasks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Tasks/Tasks.php
@@ -1346,7 +1346,7 @@
13471347 * Special page main function
13481348 */
13491349 function execute( $par = null ) { # Checked for HTML and MySQL insertion attacks
1350 - global $wgOut, $wgRequest, $wgUser, $wgTitle;
 1350+ global $wgOut, $wgRequest, $wgUser, $wgTitle, $wgLang;
13511351 $fname = 'Special::Tasks:execute';
13521352
13531353 $out = '';
@@ -1395,7 +1395,9 @@
13961396 if( $data->num == 0 ) {
13971397 $out .= wfMsgHTML( 'tasks_you_have_no_assignments' ) . '.' ;
13981398 } else {
1399 - $out .= wfMsgExt( 'tasks_see_your_assignments', array( 'escape', 'parsemag' ), $data->num, $link ) ;
 1399+ $out .= wfMsgExt( 'tasks_see_your_assignments',
 1400+ array( 'escape', 'parsemag' ),
 1401+ $wgLang->formatNum( $data->num ), $link ) ;
14001402 }
14011403 $out .= '</p>';
14021404

Status & tagging log