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:
Sarah Hoffmann
2013-04-12 23:12:03 +02:00
parent fb0d219c7b
commit 9e0a92a508
2 changed files with 2 additions and 2 deletions

View File

@@ -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;