Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97234762
PhabricatorSetupCheckImagemagick.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 3, 16:25
Size
844 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 16:25 (2 d)
Engine
blob
Format
Raw Data
Handle
23361030
Attached To
rPH Phabricator
PhabricatorSetupCheckImagemagick.php
View Options
<?php
final
class
PhabricatorSetupCheckImagemagick
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$imagemagick
=
PhabricatorEnv
::
getEnvConfig
(
'files.enable-imagemagick'
);
if
(
$imagemagick
)
{
list
(
$err
)
=
exec_manual
(
'which convert'
);
if
(
$err
)
{
$message
=
pht
(
'You have enabled Imagemagick in your config, but the
\'
convert
\'
'
.
' binary is not in the webserver
\'
s $PATH. Disable imagemagick'
.
' or make it available to the webserver.'
);
$this
->
newIssue
(
'files.enable-imagemagick'
)
->
setName
(
pht
(
"'convert' binary not found or Imagemagick is not installed."
))
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'files.enable-imagemagick'
)
->
addPhabricatorConfig
(
'environment.append-paths'
);
}
}
}
}
Event Timeline
Log In to Comment