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

If we are using a theme, make sure its template directory is avaiilable to Twig.

Otherwise, a theme would not be able to include/embed/extend its own templates.
parent aa7723a4
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,9 @@ class SimpleSAML_XHTML_Template
if ($this->module) {
$templateDirs[] = array($this->module => $this->getModuleTemplateDir($this->module));
}
if ($this->theme['module']) {
$templateDirs[] = array($this->theme['module'] => $this->getModuleTemplateDir($this->theme['module']));
}
// default, themeless templates are checked last
$templateDirs[] = array(
......
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