mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge branch '3.2.x'
This commit is contained in:
@@ -100,6 +100,16 @@ class loader extends \Twig_Loader_Filesystem
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a realpath call to fix a BC break in Twig 1.26 (https://github.com/twigphp/Twig/issues/2145)
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function addPath($path, $namespace = self::MAIN_NAMESPACE)
|
||||
{
|
||||
return parent::addPath($this->filesystem->realpath($path), $namespace);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the template
|
||||
*
|
||||
|
Reference in New Issue
Block a user