@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 23 lines 609 B view raw
1<?php 2 3final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck { 4 5 public function getDefaultGroup() { 6 return self::GROUP_OTHER; 7 } 8 9 protected function executeChecks() { 10 if (!extension_loaded('fileinfo')) { 11 $message = pht( 12 "The '%s' extension is not installed. Without '%s', ". 13 "this server may not be able to determine the MIME types ". 14 "of uploaded files.", 15 'fileinfo', 16 'fileinfo'); 17 18 $this->newIssue('extension.fileinfo') 19 ->setName(pht("Missing '%s' Extension", 'fileinfo')) 20 ->setMessage($message); 21 } 22 } 23}