bugfix
This commit is contained in:
parent
5f01cbb178
commit
66459e37a6
2
init.rb
2
init.rb
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user