Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F995444
PhabricatorSetupCheckImagemagick.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
844 B
Referenced Files
None
Subscribers
None
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'
);
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 19, 12:47 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
239057
Default Alt Text
PhabricatorSetupCheckImagemagick.php (844 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment