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(is_array($langs) && count($langs)) {
|
||||||
if(! in_array('view/en/strings.php',$langs))
|
if(! in_array('view/en/strings.php',$langs))
|
||||||
$langs[] = 'view/en/';
|
$langs[] = 'view/en/';
|
||||||
|
asort($langs);
|
||||||
foreach($langs as $l) {
|
foreach($langs as $l) {
|
||||||
$ll = substr($l,5);
|
$ll = substr($l,5);
|
||||||
$ll = substr($ll,0,strrpos($ll,'/'));
|
$ll = substr($ll,0,strrpos($ll,'/'));
|
||||||
|
|
Loading…
Reference in a new issue