Skip to content

Commit

Permalink
issue-623-handler-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
whitewhidow committed Jan 13, 2016
1 parent 62b7a79 commit d2195c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Chooser/chooserShowFolder.html.twig
Expand Up @@ -190,8 +190,8 @@
{% set counter = 1 %}
{% for media in folder.media %}
{% if not handler or handler.canHandle(media) %}
{% set handler = mediamanager.getHandler(media) %}
{% set imageurl = handler.getImageUrl(media, app.request.basePath) %}
{% set usedHandler = mediamanager.getHandler(media) %}
{% set imageurl = usedHandler.getImageUrl(media, app.request.basePath) %}
{% if imageurl is not empty and media.location == 'local' %}
{% if imageurl|lower|split('.')|last == 'svg' or 'image/svg' in media.contentType %}
{% set imageurl = imageurl %}
Expand Down

0 comments on commit d2195c0

Please sign in to comment.