changeset 36:baa0942d6b45

blog/item: fixed other_lang detection
author Goffi <goffi@goffi.org>
date Tue, 04 Jul 2017 07:54:32 +0200
parents 581e2cd4bcc2
children eb9a42fca6c8
files default/blog/item.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 %}