mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-07 13:21:02 +01:00
b701313e0e
Summary: Groups setup issues into Important, PHP, MySQL, and Base for easier parsing on initial installations. Test Plan: Test my internal server and various issues. {F289699} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7207 Differential Revision: https://secure.phabricator.com/D11726
21 lines
584 B
PHP
21 lines
584 B
PHP
<?php
|
|
|
|
final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck {
|
|
|
|
public function getDefaultGroup() {
|
|
return self::GROUP_OTHER;
|
|
}
|
|
|
|
protected function executeChecks() {
|
|
if (!extension_loaded('fileinfo')) {
|
|
$message = pht(
|
|
"The 'fileinfo' extension is not installed. Without 'fileinfo', ".
|
|
"support, Phabricator may not be able to determine the MIME types ".
|
|
"of uploaded files.");
|
|
|
|
$this->newIssue('extension.fileinfo')
|
|
->setName(pht("Missing 'fileinfo' Extension"))
|
|
->setMessage($message);
|
|
}
|
|
}
|
|
}
|