Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js |
— | — | @@ -63,11 +63,12 @@ |
64 | 64 | $( '#firstHeading' ).text( 'mediaWiki JavaScript library test suite' ); |
65 | 65 | var skinLinksText = 'Test in: '; |
66 | 66 | skinLinks = [], |
67 | | - availableSkins = mw.config.get( 'wgAvailableSkins' ); |
68 | | - for ( skin in availableSkins ) { |
| 67 | + availableSkins = mw.config.get( 'wgAvailableSkins' ), |
| 68 | + skincode = ''; |
| 69 | + for ( skincode in availableSkins ) { |
69 | 70 | skinLinks.push( mw.html.element( 'a', { |
70 | | - 'href': mw.util.wikiGetlink( wgPageName ) + '?action=mwutiltest&debug=true&useskin=' + encodeURIComponent( skin ) |
71 | | - }, availableSkins[skin] ) ); |
| 71 | + 'href': mw.util.wikiGetlink( wgPageName ) + '?action=mwutiltest&debug=true&useskin=' + encodeURIComponent( skincode ) |
| 72 | + }, availableSkins[skincode] ) ); |
72 | 73 | } |
73 | 74 | skinLinksText += skinLinks.join( ' | ' ) + '.'; |
74 | 75 | mw.util.$content.html( |