Index: trunk/extensions/Narayam/js/ext.narayam.core.js |
— | — | @@ -542,8 +542,7 @@ |
543 | 543 | $narayamMenuItems.append( $narayamMenuItem ); |
544 | 544 | } |
545 | 545 | // menu items for the language of wiki. |
546 | | - var userVariant = (typeof wgUserVariant != 'undefined' )? wgUserVariant : null; |
547 | | - var requested = [userVariant, wgContentLanguage, wgUserLanguage]; |
| 546 | + var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )]; |
548 | 547 | for ( var i = 0; i < requested.length; i++ ) { |
549 | 548 | var lang = requested[i]; |
550 | 549 | var langschemes = allImes[lang]; |