mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
allow to disable default language
If CONST_Default_Language is set to false, the fallback will be to name tags without a language suffix. Make this the default.
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
arsort($aLanguages);
|
||||
}
|
||||
}
|
||||
if (!sizeof($aLanguages)) $aLanguages = array(CONST_Default_Language=>1);
|
||||
if (!sizeof($aLanguages) && CONST_Default_Language) $aLanguages = array(CONST_Default_Language=>1);
|
||||
foreach($aLanguages as $sLangauge => $fLangauagePref)
|
||||
{
|
||||
$aLangPrefOrder['short_name:'.$sLangauge] = 'short_name:'.$sLangauge;
|
||||
|
||||
Reference in New Issue
Block a user