mirror of
https://github.com/friendica/friendica
synced 2024-11-20 15:43:41 +00:00
alphabetically sort the language selector
This commit is contained in:
parent
edbad772ba
commit
8e3cc8669b
1 changed files with 1 additions and 0 deletions
1
boot.php
1
boot.php
|
@ -2773,6 +2773,7 @@ function lang_selector() {
|
|||
if(is_array($langs) && count($langs)) {
|
||||
if(! in_array('view/en/strings.php',$langs))
|
||||
$langs[] = 'view/en/';
|
||||
asort($langs);
|
||||
foreach($langs as $l) {
|
||||
$ll = substr($l,5);
|
||||
$ll = substr($ll,0,strrpos($ll,'/'));
|
||||
|
|
Loading…
Reference in a new issue