Commit 5a2c023d authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(config) Sort languages in configuration drop down

This adds back sorting on the configuration side so that selecting the
 language is easier.

issue #5820
parent 6a7fb7fa
......@@ -452,6 +452,7 @@ class configInLdap extends simplePlugin
$attributesInfo = static::getAttributesInfo();
/* Languages */
$languages = Language::list(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages);
$attributesInfo['look_n_feel']['attrs'][0]->setChoices(array_keys($languages), array_values($languages));
/* Timezones */
......
......@@ -65,6 +65,7 @@ class setupStepLanguage extends setupStep
function execute()
{
$languages = Language::list(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages);
$this->attributesAccess['lang_selected']->setChoices(array_keys($languages), array_values($languages));
return parent::execute();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment