mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
03031e846d
1 changed files with 4 additions and 1 deletions
|
@ -87,9 +87,12 @@ class twig extends \phpbb\template\base
|
||||||
$this->loader = $twig_environment->getLoader();
|
$this->loader = $twig_environment->getLoader();
|
||||||
|
|
||||||
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
|
||||||
if ($this->path_helper->get_adm_relative_path() !== null
|
if ($this->path_helper->get_adm_relative_path() !== null
|
||||||
|
|
Loading…
Add table
Reference in a new issue