Remove all commas when parsing float numbers in sorted tables, patch from enwiki...
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 2 Nov 2007 11:54:01 +0000 (11:54 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 2 Nov 2007 11:54:01 +0000 (11:54 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
skins/common/wikibits.js

index 2b1f26a..9155bbe 100644 (file)
@@ -127,6 +127,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11795) Be more paranoid about confirming accept-encoding header is present
 * (bug 11809) Use formatNum() for more numbers
 * (bug 11818) Fix native language name of Inuktitut (iu)
+* Remove all commas when parsing float numbers in sorted tables
 
 === API changes in 1.12 ===
 
index 7339faf..f32e9d1 100644 (file)
@@ -1215,7 +1215,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '100';
+$wgStyleVersion = '101';
 
 
 # Server-side caching:
index 11ede27..a04ca2c 100644 (file)
@@ -1146,7 +1146,7 @@ function ts_dateToSortKey(date) {
 
 function ts_parseFloat(num) {
        if (!num) return 0;
-       num = parseFloat(num.replace(/,/, ""));
+       num = parseFloat(num.replace(/,/g, ""));
        return (isNaN(num) ? 0 : num);
 }