Index: trunk/phase3/languages/Language.php |
— | — | @@ -1899,12 +1899,12 @@ |
1900 | 1900 | if (!$nocommafy) { |
1901 | 1901 | $number = $this->commafy($number); |
1902 | 1902 | $s = $this->separatorTransformTable(); |
1903 | | - if (!is_null($s)) { $number = strtr($number, $s); } |
| 1903 | + if ($s) { $number = strtr($number, $s); } |
1904 | 1904 | } |
1905 | 1905 | |
1906 | 1906 | if ($wgTranslateNumerals) { |
1907 | 1907 | $s = $this->digitTransformTable(); |
1908 | | - if (!is_null($s)) { $number = strtr($number, $s); } |
| 1908 | + if ($s) { $number = strtr($number, $s); } |
1909 | 1909 | } |
1910 | 1910 | |
1911 | 1911 | return $number; |
— | — | @@ -1912,10 +1912,10 @@ |
1913 | 1913 | |
1914 | 1914 | function parseFormattedNumber( $number ) { |
1915 | 1915 | $s = $this->digitTransformTable(); |
1916 | | - if (!is_null($s)) { $number = strtr($number, array_flip($s)); } |
| 1916 | + if ($s) { $number = strtr($number, array_flip($s)); } |
1917 | 1917 | |
1918 | 1918 | $s = $this->separatorTransformTable(); |
1919 | | - if (!is_null($s)) { $number = strtr($number, array_flip($s)); } |
| 1919 | + if ($s) { $number = strtr($number, array_flip($s)); } |
1920 | 1920 | |
1921 | 1921 | $number = strtr( $number, array (',' => '') ); |
1922 | 1922 | return $number; |