Actualiza a Redmine 3.4.13
This commit is contained in:
parent
807ff3308d
commit
ecddcaf1d3
224 changed files with 2222 additions and 1000 deletions
|
@ -49,7 +49,12 @@ module Redmine
|
|||
|
||||
def self.convert_available?
|
||||
return @convert_available if defined?(@convert_available)
|
||||
@convert_available = system("#{shell_quote CONVERT_BIN} -version") rescue false
|
||||
begin
|
||||
`#{shell_quote CONVERT_BIN} -version`
|
||||
@convert_available = $?.success?
|
||||
rescue
|
||||
@convert_available = false
|
||||
end
|
||||
logger.warn("Imagemagick's convert binary (#{CONVERT_BIN}) not available") unless @convert_available
|
||||
@convert_available
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue