1
0
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:
Marc Alexander
2016-10-10 21:39:21 +02:00
5 changed files with 197 additions and 166 deletions

View File

@@ -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
*