Skip to content
Snippets Groups Projects
Commit 287aac2c authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Add translated error info in data for error template. This is needed in order...

Add translated error info in data for error template. This is needed in order for theming error page with Twig.
parent 803142d5
No related branches found
No related tags found
No related merge requests found
...@@ -295,6 +295,8 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception ...@@ -295,6 +295,8 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception
} else { } else {
$t = new SimpleSAML_XHTML_Template($config, 'error.php', 'errors'); $t = new SimpleSAML_XHTML_Template($config, 'error.php', 'errors');
$t->data = array_merge($t->data, $data); $t->data = array_merge($t->data, $data);
$t->data['dictTitleTranslated'] = $t->getTranslator()->t($t->data['dictTitle']);
$t->data['dictDescrTranslated'] = $t->getTranslator()->t($t->data['dictDescr'], $t->data['parameters']);
$t->show(); $t->show();
} }
......
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