From 80a178ba073ec5df2c982690824e8d9e78930c9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Wed, 12 Dec 2018 11:45:37 +0100
Subject: [PATCH] Minor fixes to authorize's twig template.

---
 modules/authorize/templates/authorize_403.twig | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/authorize/templates/authorize_403.twig b/modules/authorize/templates/authorize_403.twig
index 0f4a77d78..52d9a2430 100644
--- a/modules/authorize/templates/authorize_403.twig
+++ b/modules/authorize/templates/authorize_403.twig
@@ -1,15 +1,15 @@
 {% extends "base.twig" %}
 
 {% block content %}
-  <h1>{{ '{authorize:Authorize:403_header}'|trans }}</h1>
-{% if reject_msg[currentLanguage] is defined %}
-  <p>{{ reject_msg[currentLanguage]|raw }}</p>
+  <h1>{% trans %}{authorize:Authorize:403_header}{% endtrans %}</h1>
+{% if reject_msg %}
+  <p>{{ reject_msg|translateFromArray }}</p>
 {% else %}
-  <p>{{ '{authorize:Authorize:403_text}'|trans }}</p>
+  <p>{% trans %}{authorize:Authorize:403_text}{% endtrans %}</p>
 {% endif %}
-  {% if logoutURL is defined %}
+  {% if logoutURL %}
   <p>
-      <a href="{{ logoutURL|escape('html') }}">{{ '{status:logout}'|trans }}</a>
+      <a href="{{ logoutURL }}">{% trans %}{status:logout}{% endtrans %}</a>
   </p>
   {% endif %}
 {% endblock%}
-- 
GitLab