diff default/blog/item.html @ 36:baa0942d6b45

blog/item: fixed other_lang detection
author Goffi <goffi@goffi.org>
date Tue, 04 Jul 2017 07:54:32 +0200
parents 5fd910d48192
children 0c6aa1c81252
line wrap: on
line diff
--- a/default/blog/item.html	Sat Jul 01 00:23:28 2017 +0200
+++ b/default/blog/item.html	Tue Jul 04 07:54:32 2017 +0200
@@ -1,6 +1,6 @@
 {% block item %}
 
-{% if item.language and locale and locale != item.language %}
+{% if item.language and locale and locale.language != item.language %}
     {# we may display items in different language in a specific way #}
     {% set other_lang = " other_lang" %}
 {% endif %}