mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
Don't output ImageMagick version information to stdout (#31125).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18126 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f28ad8e25f
commit
a81749fe66
@ -51,7 +51,12 @@ module Redmine
|
|||||||
|
|
||||||
def self.convert_available?
|
def self.convert_available?
|
||||||
return @convert_available if defined?(@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
|
logger.warn("Imagemagick's convert binary (#{CONVERT_BIN}) not available") unless @convert_available
|
||||||
@convert_available
|
@convert_available
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user