mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix issue with loading brand documentation (close #6134)
This commit is contained in:
@@ -134,6 +134,9 @@ export default {
|
||||
// }
|
||||
//
|
||||
getDocs: function(params, callback) {
|
||||
|
||||
var langs = this.languagesToQuery();
|
||||
|
||||
this.entityByQID(params.qid, function(err, entity) {
|
||||
if (err || !entity) {
|
||||
callback(err || 'No entity');
|
||||
@@ -175,10 +178,9 @@ export default {
|
||||
}
|
||||
|
||||
if (entity.sitelinks) {
|
||||
// must be one of these that we requested..
|
||||
var langs = this.languagesToQuery();
|
||||
var englishLocale = (currentLocale.split('-', 2)[0].toLowerCase() === 'en');
|
||||
|
||||
// must be one of these that we requested..
|
||||
for (i = 0; i < langs.length; i++) { // check each, in order of preference
|
||||
var w = langs[i] + 'wiki';
|
||||
if (entity.sitelinks[w]) {
|
||||
|
||||
Reference in New Issue
Block a user