Fixed bug that caused version numbers to be output incorectly. JavaScript's Array...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 21:50:32 +0000 (21:50 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 21:50:32 +0000 (21:50 +0000)
resources/mediawiki/mediawiki.js

index 465e147..0c4422a 100644 (file)
@@ -233,14 +233,14 @@ window.mediaWiki = new ( function( $ ) {
                 */
                function formatVersionNumber( timestamp ) {
                        function pad( a, b, c ) {
-                               return [a < 10 ? '0' + a : a, b < 10 ? '0' + b : b, c < 10 ? '0' + c : c].join();
+                               return [a < 10 ? '0' + a : a, b < 10 ? '0' + b : b, c < 10 ? '0' + c : c].join( '' );
                        }
                        var d = new Date()
                        d.setTime( timestamp * 1000 );
                        return [
                                pad( d.getUTCFullYear(), d.getUTCMonth() + 1, d.getUTCDate() ), 'T',
                                pad( d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds() ), 'Z'
-                       ].join();
+                       ].join( '' );
                }
                
                /**