mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
1 commit
86e8eb332d
...
c7ab20e347
Author | SHA1 | Date | |
---|---|---|---|
|
c7ab20e347 |
1 changed files with 3 additions and 16 deletions
|
@ -129,23 +129,10 @@ class language_file_helper
|
||||||
/**
|
/**
|
||||||
* Sorts the languages by their name instead of iso code
|
* Sorts the languages by their name instead of iso code
|
||||||
*
|
*
|
||||||
* @param mixed $a First language data
|
* @return array
|
||||||
* @param mixed $b Second language data
|
|
||||||
* @return int
|
|
||||||
*/
|
*/
|
||||||
private static function sort_by_local_name(mixed $a, mixed $b): int
|
private static function sort_by_local_name($a, $b)
|
||||||
{
|
{
|
||||||
if ($a['local_name'] > $b['local_name'])
|
return $a['local_name'] > $b['local_name'];
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else if ($a['local_name'] < $b['local_name'])
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue