This commit is contained in:
chris-ibcsf 2016-02-22 22:43:38 +01:00
commit 79b7f61116

View File

@ -185,7 +185,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 and size.include? "%"
if size && size.include?('%')
image_tag(url, :alt => file.title, :width => size, :height => size)
elsif height
image_tag(url, :alt => file.title, :width => 'auto', :height => height)