Skip to content
Snippets Groups Projects
Commit c9f3cc83 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Improve readabilty

parent 2aa3d8d7
No related branches found
No related tags found
No related merge requests found
...@@ -112,22 +112,21 @@ foreach ($state['core:Logout-IFrame:Associations'] as $association) { ...@@ -112,22 +112,21 @@ foreach ($state['core:Logout-IFrame:Associations'] as $association) {
} }
} }
$id = \SimpleSAML\Auth\State::saveState($state, 'core:Logout-IFrame');
$globalConfig = \SimpleSAML\Configuration::getInstance(); $globalConfig = \SimpleSAML\Configuration::getInstance();
$template_id = 'core:logout-iframe.php';
if ($type === 'nojs') { if ($type === 'nojs') {
$template_id = 'core:logout-iframe-wrapper.php'; $t = new \SimpleSAML\XHTML\Template($globalConfig, 'core:logout-iframe-wrapper.php');
} else {
$t = new \SimpleSAML\XHTML\Template($globalConfig, 'core:logout-iframe.php');
} }
$t = new \SimpleSAML\XHTML\Template($globalConfig, $template_id);
$t->data['auth_state'] = $id;
$t->data['header'] = $t->getTranslator()->t('{logout:progress}');
/** /**
* @deprecated The "id" variable will be removed. Please use "auth_state" instead. * @deprecated The "id" variable will be removed. Please use "auth_state" instead.
*/ */
$id = \SimpleSAML\Auth\State::saveState($state, 'core:Logout-IFrame');
$t->data['id'] = $id; $t->data['id'] = $id;
$t->data['auth_state'] = $id;
$t->data['header'] = $t->getTranslator()->t('{logout:progress}');
$t->data['type'] = $type; $t->data['type'] = $type;
$t->data['terminated_service'] = $terminated; $t->data['terminated_service'] = $terminated;
$t->data['remaining_services'] = $remaining; $t->data['remaining_services'] = $remaining;
......
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