diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 12:53:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 12:53:51 +0000 |
commit | a8d8c213bb61e702b6266b6f5ae71ad6be647614 (patch) | |
tree | 72a48c2b0ce1eae0720e8b95366046e8bcee575f /app/views/attachments | |
parent | 2660a2e5b361a09331ddb6a3067ddc643412769b (diff) | |
download | redmine-a8d8c213bb61e702b6266b6f5ae71ad6be647614.tar.gz redmine-a8d8c213bb61e702b6266b6f5ae71ad6be647614.zip |
Use path instead of URL of image in preview (#25295).
Patch by Krzysztof Zielonka.
git-svn-id: http://svn.redmine.org/redmine/trunk@16463 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r-- | app/views/attachments/image.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/image.html.erb b/app/views/attachments/image.html.erb index 306458366..b0d2258d7 100644 --- a/app/views/attachments/image.html.erb +++ b/app/views/attachments/image.html.erb @@ -1,3 +1,3 @@ <%= render :layout => 'layouts/file' do %> - <%= render :partial => 'common/image', :locals => {:path => download_named_attachment_url(@attachment, @attachment.filename), :alt => @attachment.filename} %> + <%= render :partial => 'common/image', :locals => {:path => download_named_attachment_path(@attachment, @attachment.filename), :alt => @attachment.filename} %> <% end %> |