]> git.mxchange.org Git - friendica.git/commitdiff
alphabetically sort the language selector
authorFriendika <info@friendika.com>
Mon, 6 Jun 2011 03:45:46 +0000 (20:45 -0700)
committerFriendika <info@friendika.com>
Mon, 6 Jun 2011 03:45:46 +0000 (20:45 -0700)
boot.php

index a67b96a085ca114371e66237144e96062f764a61..3c8208339583b8b49097aa4c6445761aeb4ada22 100644 (file)
--- a/boot.php
+++ b/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,'/'));