mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:58:53 +00:00
Compare commits
7 commits
a658fdffd4
...
a0ce1503ae
Author | SHA1 | Date | |
---|---|---|---|
|
a0ce1503ae | ||
|
03031e846d | ||
|
9219c03b36 | ||
|
579b4a8287 | ||
|
b8c49f9711 | ||
|
2f43c1facd | ||
|
063f0aec45 |
3 changed files with 6 additions and 14 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,7 +365,7 @@ class email extends base
|
||||||
$this->set_dsn();
|
$this->set_dsn();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->transport = Transport::fromDsn($this->dsn);
|
$this->transport = Transport::fromDsn($this->dsn, $this->dispatcher);
|
||||||
|
|
||||||
if ($this->config['smtp_delivery'] && method_exists($this->transport, 'getStream'))
|
if ($this->config['smtp_delivery'] && method_exists($this->transport, 'getStream'))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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