mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +01:00
18 lines
511 B
PHP
18 lines
511 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorSetupCheckFileinfo extends PhabricatorSetupCheck {
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|