From c5d64ae03ff3cf1d969f7ca1852a33baeba2a2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Tue, 18 Jul 2017 13:12:25 +0200 Subject: [PATCH] Make sure if we are using a theme, its module is added as a valid domain where we can look for translations. --- lib/SimpleSAML/XHTML/Template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php index 0d660309d..9f77c111c 100644 --- a/lib/SimpleSAML/XHTML/Template.php +++ b/lib/SimpleSAML/XHTML/Template.php @@ -178,11 +178,13 @@ class SimpleSAML_XHTML_Template return false; } - // load extra i18n domains if ($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( 'cache' => $cache, -- GitLab