mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
[ticket/17399] Fix selected language in installer
This fixes a bug where a user could have other languages in the installer but the language dropdown did not match the language shown. PHPBB-17399
This commit is contained in:
@@ -67,6 +67,18 @@ 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'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user