Sort list of languages

This commit is contained in:
Laurent Destailleur 2009-01-05 00:48:27 +00:00
parent 36e400b4ba
commit e954e8037b

View File

@ -57,7 +57,7 @@ class FormAdmin
global $langs;
$langs_available=$langs->get_available_languages();
print '<select class="flat" name="'.$htmlname.'">';
if ($showauto)
{
@ -65,6 +65,8 @@ class FormAdmin
if ($selected == 'auto') print ' selected="true"';
print '>'.$langs->trans("AutoDetectLang").'</option>';
}
sort($langs_available);
$num = count($langs_available);
$i = 0;
if ($num)