diff --git a/src/applications/config/check/PhabricatorGDSetupCheck.php b/src/applications/config/check/PhabricatorGDSetupCheck.php index 750702c706..7ada204801 100644 --- a/src/applications/config/check/PhabricatorGDSetupCheck.php +++ b/src/applications/config/check/PhabricatorGDSetupCheck.php @@ -1,57 +1,58 @@ newIssue('extension.gd') ->setName(pht("Missing '%s' Extension", 'gd')) - ->setMessage($message); + ->setMessage($message) + ->addPHPExtension('gd'); } else { $image_type_map = array( 'imagecreatefrompng' => 'PNG', 'imagecreatefromgif' => 'GIF', 'imagecreatefromjpeg' => 'JPEG', ); $have = array(); foreach ($image_type_map as $function => $image_type) { if (function_exists($function)) { $have[] = $image_type; } } $missing = array_diff($image_type_map, $have); if ($missing) { $missing = implode(', ', $missing); $have = implode(', ', $have); $message = pht( "The '%s' extension has support for only some image types. ". "Phabricator will be unable to process images of the missing ". "types until you build '%s' with support for them. ". "Supported types: %s. Missing types: %s.", 'gd', 'gd', $have, $missing); $this->newIssue('extension.gd.support') ->setName(pht("Partial '%s' Support", 'gd')) ->setMessage($message); } } } }