Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorImagemagickSetupCheck.php
- This file was moved from src/applications/config/check/PhabricatorSetupCheckImagemagick.php.
<?php | <?php | ||||
final class PhabricatorSetupCheckImagemagick extends PhabricatorSetupCheck { | final class PhabricatorImagemagickSetupCheck extends PhabricatorSetupCheck { | ||||
protected function executeChecks() { | protected function executeChecks() { | ||||
$imagemagick = PhabricatorEnv::getEnvConfig('files.enable-imagemagick'); | $imagemagick = PhabricatorEnv::getEnvConfig('files.enable-imagemagick'); | ||||
if ($imagemagick) { | if ($imagemagick) { | ||||
if (!Filesystem::binaryExists('convert')) { | if (!Filesystem::binaryExists('convert')) { | ||||
$message = pht( | $message = pht( | ||||
'You have enabled Imagemagick in your config, but the \'convert\' '. | 'You have enabled Imagemagick in your config, but the \'convert\' '. | ||||
'binary is not in the webserver\'s $PATH. Disable imagemagick '. | 'binary is not in the webserver\'s $PATH. Disable imagemagick '. | ||||
Show All 12 Lines |