r115608 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r115607‎ | r115608 | r115609 >
Date:23:06, 11 July 2012
Author:dasch
Status:deferred
Tags:
Comment:
intval to prevent errors
Modified paths:
  • /trunk/extensions/FormatNum/FormatNum.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FormatNum/FormatNum.php
@@ -41,6 +41,7 @@
4242 if ( $param4 == '_' ){
4343 $param4 = ' ';
4444 }
 45+ $param2 = intval($param2);
4546 $output = number_format( $param1, $param2, $param3, $param4 );
4647 switch ($param4) {
4748 case 't':

Status & tagging log