1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/config/check/PhabricatorSetupCheckFileinfo.php

18 lines
511 B
PHP
Raw Normal View History

<?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);
}
}
}