This commit is contained in:
Nicolas Le Goff
2014-10-16 15:19:44 +02:00
parent 1dddcbd3c6
commit f219697cde

View File

@@ -66,7 +66,7 @@
{% if thumbnail.path is defined and (thumbnail.path is not empty or thumbnail.path is not none) %} {% if thumbnail.path is defined and (thumbnail.path is not empty or thumbnail.path is not none) %}
{% set path = thumbnail.path %} {% set path = thumbnail.path %}
{% else %} {% else %}
{% set path = app['root.path'] ~ '/www/skins/icons/' ~ record.mimeType|replace({'/': '_'} ~ '.png') %} {% set path = app['root.path'] ~ '/www/skins/icons/' ~ record.mimeType|replace({'/': '_'}) ~ '.png' %}
{% endif %} {% endif %}
{% set url = app['phraseanet.static-file'].getUrl(path) %} {% set url = app['phraseanet.static-file'].getUrl(path) %}