mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
6 commits
a658fdffd4
...
a0ce1503ae
Author | SHA1 | Date | |
---|---|---|---|
|
a0ce1503ae | ||
|
03031e846d | ||
|
9219c03b36 | ||
|
579b4a8287 | ||
|
b8c49f9711 | ||
|
2f43c1facd |
2 changed files with 5 additions and 13 deletions
|
@ -135,17 +135,6 @@ 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
|
||||||
{
|
{
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,10 @@ class twig extends \phpbb\template\base
|
||||||
|
|
||||||
foreach ($extensions as $extension)
|
foreach ($extensions as $extension)
|
||||||
{
|
{
|
||||||
$this->twig->addExtension($extension);
|
if (!$this->twig->hasExtension(get_class($extension)))
|
||||||
|
{
|
||||||
|
$this->twig->addExtension($extension);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add admin namespace
|
// Add admin namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue