From 9fe940b8f4dcb2624585d7607f17809dedde7a0d Mon Sep 17 00:00:00 2001
From: Hanne Moa <hanne.moa@uninett.no>
Date: Tue, 1 Mar 2016 10:12:40 +0100
Subject: [PATCH] Adapt to new format for languagebar array

---
 templates/_header.twig.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/_header.twig.html b/templates/_header.twig.html
index 4de7b0521..ad521520e 100644
--- a/templates/_header.twig.html
+++ b/templates/_header.twig.html
@@ -4,9 +4,9 @@
 
 {% if not hideLanguageBar %}
 <div id="languagebar">
-    {% for language, param in languageBar %}
+    {% for lang in languageBar %}
 
-    {%- if not loop.first -%} | {%- endif -%}{% if param %}<a href="{{ param }}">{{ language }}</a>{% else %}{{ language }}{% endif %}
+    {%- if not loop.first -%} | {%- endif -%}{% if lang.url %}<a href="{{ lang.url }}">{{ lang.name }}</a>{% else %}{{ lang.name }}{% endif %}
 
     {% endfor %}
 
-- 
GitLab