Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorFileinfoSetupCheck.php
- This file was moved from src/applications/config/check/PhabricatorSetupCheckFileinfo.php.
<?php | <?php | ||||
final class PhabricatorSetupCheckFileinfo extends PhabricatorSetupCheck { | final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck { | ||||
protected function executeChecks() { | protected function executeChecks() { | ||||
if (!extension_loaded('fileinfo')) { | if (!extension_loaded('fileinfo')) { | ||||
$message = pht( | $message = pht( | ||||
"The 'fileinfo' extension is not installed. Without 'fileinfo', ". | "The 'fileinfo' extension is not installed. Without 'fileinfo', ". | ||||
"support, Phabricator may not be able to determine the MIME types ". | "support, Phabricator may not be able to determine the MIME types ". | ||||
"of uploaded files."); | "of uploaded files."); | ||||
$this->newIssue('extension.fileinfo') | $this->newIssue('extension.fileinfo') | ||||
->setName(pht("Missing 'fileinfo' Extension")) | ->setName(pht("Missing 'fileinfo' Extension")) | ||||
->setMessage($message); | ->setMessage($message); | ||||
} | } | ||||
} | } | ||||
} | } |