r13940 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13939‎ | r13940 | r13941 >
Date:21:44, 29 April 2006
Author:nikerabbit
Status:old
Tags:
Comment:
Fix comments
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -683,7 +683,7 @@
684684 }
685685
686686 function formatDay( $day, $format ) {
687 - return $this->formatNum( 0 + $day );
 687+ return $this->formatNum( 0 + $day, true );
688688 }
689689
690690 /**
@@ -913,12 +913,12 @@
914914 * @public
915915 * @param mixed $number the string to be formatted, should be an integer or
916916 * a floating point number.
917 - * @param bool $commafy Set to false for special numbers like dates
 917+ * @param bool $nocommafy Set to true for special numbers like dates
918918 * @return string
919919 */
920 - function formatNum( $number, $commafy = false ) {
 920+ function formatNum( $number, $nocommafy = false ) {
921921 global $wgTranslateNumerals;
922 - if (!$commafy) {
 922+ if (!$nocommafy) {
923923 $number = $this->commafy($number);
924924 $s = $this->separatorTransformTable();
925925 if (!is_null($s)) { $number = strtr($number, $s); }

Status & tagging log