Merge "Don't return undefined in ve.init.mw.Platform#getLanguageName"

This commit is contained in:
jenkins-bot 2014-09-12 21:46:34 +00:00 committed by Gerrit Code Review
commit 1063342789

View file

@ -88,7 +88,7 @@ ve.init.mw.Platform.prototype.getLanguageCodes = function () {
ve.init.mw.Platform.prototype.getLanguageName = function ( code ) {
var languageNames = mw.language.getData( mw.config.get( 'wgUserLanguage' ), 'languageNames' ) ||
$.uls.data.getAutonyms();
return languageNames[code];
return languageNames[code] || '';
};
/**