[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorSetupCheckImagemagick extends PhabricatorSetupCheck { 4 5 protected function executeChecks() { 6 $imagemagick = PhabricatorEnv::getEnvConfig('files.enable-imagemagick'); 7 if ($imagemagick) { 8 if (!Filesystem::binaryExists('convert')) { 9 $message = pht( 10 'You have enabled Imagemagick in your config, but the \'convert\' '. 11 'binary is not in the webserver\'s $PATH. Disable imagemagick '. 12 'or make it available to the webserver.'); 13 14 $this->newIssue('files.enable-imagemagick') 15 ->setName(pht( 16 "'convert' binary not found or Imagemagick is not installed.")) 17 ->setMessage($message) 18 ->addRelatedPhabricatorConfig('files.enable-imagemagick') 19 ->addPhabricatorConfig('environment.append-paths'); 20 } 21 } 22 } 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |