2013-05-17 19:00:40 +02:00
|
|
|
<?php
|
|
|
|
|
2015-01-02 05:27:45 +01:00
|
|
|
final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck {
|
2013-05-17 19:00:40 +02:00
|
|
|
|
2015-02-10 21:53:00 +01:00
|
|
|
public function getDefaultGroup() {
|
|
|
|
return self::GROUP_OTHER;
|
|
|
|
}
|
|
|
|
|
2013-05-17 19:00:40 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|