Sort languages list

This commit is contained in:
Bartek Fabiszewski 2017-04-07 19:19:15 +02:00
parent a280ce33a5
commit fbda1bb2cb

View File

@ -107,6 +107,7 @@ $langForm = '
<u>' . $lang["language"] . '</u><br />
<form>
<select name="units" onchange="setLang(this.options[this.selectedIndex].value);">';
asort($langsArr);
foreach ($langsArr as $langCode => $langName) {
$langForm .= '<option value="' . $langCode . '"' . (($config::$lang == $langCode) ? ' selected' : '') . '>' . $langName . '</option>';
}