Skip to content
Snippets Groups Projects
Commit 41fc0305 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: Avoid an exception being thrown if a twig template is not found.

parent a80a7a0a
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ class TemplateLoader extends \Twig\Loader\FilesystemLoader ...@@ -22,7 +22,7 @@ class TemplateLoader extends \Twig\Loader\FilesystemLoader
if (!in_array($namespace, $this->paths, true) && $namespace !== self::MAIN_NAMESPACE) { if (!in_array($namespace, $this->paths, true) && $namespace !== self::MAIN_NAMESPACE) {
$this->addPath(self::getModuleTemplateDir($namespace), $namespace); $this->addPath(self::getModuleTemplateDir($namespace), $namespace);
} }
return parent::findTemplate($name); return parent::findTemplate($name, $throw);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment