From 268cd26712d18da827dceef2084d61b92131c1f3 Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Fri, 5 Feb 2016 14:37:14 +0100 Subject: [PATCH] Bugfix. The consentAdmin module was still calling SimpleSAML_XHTML_Template::getTag(), while that method has been moved to \SimpleSAML\Locale\Translate. --- modules/consentAdmin/www/consentAdmin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/consentAdmin/www/consentAdmin.php b/modules/consentAdmin/www/consentAdmin.php index 717fa3c28..5a9037e12 100644 --- a/modules/consentAdmin/www/consentAdmin.php +++ b/modules/consentAdmin/www/consentAdmin.php @@ -205,8 +205,9 @@ $template_sp_content = array(); // Init template $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin'); -$sp_empty_name = $template->getTag('sp_empty_name'); -$sp_empty_description = $template->getTag('sp_empty_description'); +$translator = new \SimpleSAML\Locale\Translate($config, 'consentAdmin:consentadmin'); +$sp_empty_name = $translator->getTag('sp_empty_name'); +$sp_empty_description = $translator->getTag('sp_empty_description'); // Process consents for all SP foreach ($all_sp_metadata as $sp_entityid => $sp_values) { -- GitLab