Skip to content

Commit

Permalink
Update helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuan Pham Ngoc committed Oct 16, 2014
1 parent ff57965 commit 7ea59b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions administrator/modules/mod_login/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ public static function getLanguageList()
{
return '';
}

// Make sure the languages are sorted based on locale code instead of random sorting
ksort($languages);

usort($languages, function ($a, $b)
{
return strcmp($a["value"], $b["value"]);
});

array_unshift($languages, JHtml::_('select.option', '', JText::_('JDEFAULTLANGUAGE')));

Expand Down

0 comments on commit 7ea59b1

Please sign in to comment.