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

Make sure if we are using a theme, its module is added as a valid domain where...

Make sure if we are using a theme, its module is added as a valid domain where we can look for translations.
parent c42f97cc
No related branches found
No related tags found
No related merge requests found
...@@ -178,11 +178,13 @@ class SimpleSAML_XHTML_Template ...@@ -178,11 +178,13 @@ class SimpleSAML_XHTML_Template
return false; return false;
} }
// load extra i18n domains // load extra i18n domains
if ($this->module) { if ($this->module) {
$this->localization->addModuleDomain($this->module); $this->localization->addModuleDomain($this->module);
} }
if ($this->theme['module'] !== null && $this->theme['module'] !== $this->module) {
$this->localization->addModuleDomain($this->theme['module']);
}
$options = array( $options = array(
'cache' => $cache, 'cache' => $cache,
......
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