Compare commits

..

No commits in common. "d4a3311b764d282d56cff2382762b5bd454b1f8b" and "8f8a93fa71903d4e8913fe34961134ad6a7aa9e4" have entirely different histories.

3 changed files with 1 additions and 21 deletions

View file

@ -339,14 +339,6 @@ class helper
protected function render_language_select($selected_language = null)
{
$langs = $this->lang_helper->get_available_languages();
// The first language will be selected by default. Unless a user has consciously included
// other languages in the installation process, it will be British English anyway.
if ($selected_language === null && count($langs))
{
$selected_language = $langs[0]['iso'];
}
foreach ($langs as $lang)
{
$this->template->assign_block_vars('language_select_item', array(

View file

@ -67,18 +67,6 @@ class language_file_helper
);
}
usort($available_languages, [$this, 'sort_by_local_name']);
return $available_languages;
}
/**
* Sorts the languages by their name instead of iso code
*
* @return array
*/
private static function sort_by_local_name($a, $b)
{
return $a['local_name'] > $b['local_name'];
}
}