1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-21 21:19:36 +01:00

Prevent double / in templates/post/flag

This commit is contained in:
8chan 2015-03-16 16:48:31 -07:00
parent 8763cc9327
commit c6f6dae87f

View File

@ -3,7 +3,7 @@
{% if config.country_flags_condensed %}
class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}"
{% else %}
class="flag" src="{{ config.root }}{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
class="flag" src="{% if config.root != '/' %}{{ config.root }}{% endif %}{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
{% endif %}
style="{% if post.modifiers['flag style'] %}
{{ post.modifiers['flag style'] }}