Index: trunk/phase3/resources/mediawiki.language/mediawiki.language.js |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | /** |
67 | 67 | * Converts a number using digitTransformTable. |
68 | 68 | * |
69 | | - * @param {number} number Value to be converted |
| 69 | + * @param {num} number Value to be converted |
70 | 70 | * @param {boolean} integer Convert the return value to an integer |
71 | 71 | */ |
72 | 72 | 'convertNumber': function( num, integer ) { |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | convertedNumber += numberString[i]; |
96 | 96 | } |
97 | 97 | } |
98 | | - return integer ? parseInt( convertedNumber ) : convertedNumber; |
| 98 | + return integer ? parseInt( convertedNumber, 10 ) : convertedNumber; |
99 | 99 | }, |
100 | 100 | // Digit Transform Table, populated by language classes where applicable |
101 | 101 | 'digitTransformTable': null |