Fix Bug 40714 - ULS geoclient needs proper interface
Change-Id: Id8d7356ec75e8652c75927736a60b916dd069c28
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
window.GEO = data;
|
||||
};
|
||||
|
||||
mw.uls.getCountryCode = function () {
|
||||
return window.GEO.country || window.GEO.country_code;
|
||||
};
|
||||
|
||||
var settings = {
|
||||
cache: true,
|
||||
dataType: "jsonp",
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
.concat( mw.uls.getAcceptLanguageList() );
|
||||
|
||||
if ( window.GEO ) {
|
||||
list = list.concat( $.uls.data.getLanguagesInTerritory( window.GEO.country_code ) );
|
||||
list = list.concat( $.uls.data.getLanguagesInTerritory( mw.uls.getCountryCode() ) );
|
||||
}
|
||||
|
||||
$.each( list, function ( i, v ) {
|
||||
|
||||
Reference in New Issue
Block a user