mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
1 commit
a0ce1503ae
...
a658fdffd4
Author | SHA1 | Date | |
---|---|---|---|
|
a658fdffd4 |
2 changed files with 13 additions and 5 deletions
|
@ -135,6 +135,17 @@ class language_file_helper
|
||||||
*/
|
*/
|
||||||
private static function sort_by_local_name(mixed $a, mixed $b): int
|
private static function sort_by_local_name(mixed $a, mixed $b): int
|
||||||
{
|
{
|
||||||
return $a['local_name'] <=> $b['local_name'];
|
if ($a['local_name'] > $b['local_name'])
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else if ($a['local_name'] < $b['local_name'])
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,10 +88,7 @@ class twig extends \phpbb\template\base
|
||||||
|
|
||||||
foreach ($extensions as $extension)
|
foreach ($extensions as $extension)
|
||||||
{
|
{
|
||||||
if (!$this->twig->hasExtension(get_class($extension)))
|
$this->twig->addExtension($extension);
|
||||||
{
|
|
||||||
$this->twig->addExtension($extension);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add admin namespace
|
// Add admin namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue