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

Remove unnecessary use of Translate::t

parent 7f1bf627
No related branches found
No related tags found
No related merge requests found
......@@ -99,20 +99,6 @@ class ExceptionController
}
$t = new Template($this->config, 'core:no_cookie.tpl.php');
$translator = $t->getTranslator();
/** @var string $header */
$header = $translator->t('{core:no_cookie:header}');
/** @var string $desc */
$desc = $translator->t('{core:no_cookie:description}');
/** @var string $retry */
$retry = $translator->t('{core:no_cookie:retry}');
$t->data['header'] = htmlspecialchars($header);
$t->data['description'] = htmlspecialchars($desc);
$t->data['retry'] = htmlspecialchars($retry);
$t->data['retryURL'] = $retryURL;
return $t;
}
......@@ -147,10 +133,8 @@ class ExceptionController
$t = new Template($this->config, 'core:short_sso_interval.tpl.php');
$translator = $t->getTranslator();
$t->data['target'] = Module::getModuleURL('core/short_sso_interval.php');
$t->data['params'] = ['StateId' => $stateId];
$t->data['trackId'] = $this->session->getTrackID();
$t->data['header'] = $translator->t('{core:short_sso_interval:warning_header}');
$t->data['autofocus'] = 'contbutton';
return $t;
}
......
......@@ -3,11 +3,11 @@
{% extends "base.twig" %}
{% block content %}
<h2>{{ header }}</h2>
<p>{{ description }}</p>
<h2>{{ '{core:no_cookie:header}'|trans }}</h2>
<p>{{ '{core:no_cookie:description}'|trans }}</p>
{% if retryURL is not null %}
<ul>
<li><a href="{{ retryURL|escape('html') }}" id="retry">{{ retry }}</a></li>
<li><a href="{{ retryURL|escape('html') }}" id="retry">{{ '{core:no_cookie:retry}'|trans }}</a></li>
</ul>
{% endif %}
{% endblock %}
......@@ -2,8 +2,8 @@
{% extends "base.twig" %}
{% block content %}
<h1>{{ header }}</h1>
<form style="display: inline; margin: 0px; padding: 0px" action="{{ target|escape('html') }}">
<h1>{{ '{core:short_sso_interval:warning_header}'|trans }}</h1>
<form style="display: inline; margin: 0px; padding: 0px" action="{{ moduleUrl('core/short_sso_interval.php') }}">
{% for name, value in params %}
<input type="hidden" name="{{ name|escape('html') }}" value="{{ value|escape('html') }}">
{% endfor %}
......
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