This commit is contained in:
Christian Franke 2016-02-17 18:13:23 +01:00
parent 5f01cbb178
commit 66459e37a6

View File

@ -181,7 +181,7 @@ Redmine::Plugin.register :redmine_dmsf do
end
raise 'Not supported image format' unless file.image?
url = url_for(:controller => :dmsf_files, :action => 'view', :id => file)
if size.include? "%"
if size and size.include? "%"
image_tag(url, :alt => file.title, :width => size, :height => size)
else
image_tag(url, :alt => file.title, :size => size)