Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / config / check / PhabricatorFileinfoSetupCheck.php
blob543fc4fb7cf0eec87069fbd407a0d76706adaf5b
1 <?php
3 final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck {
5 public function getDefaultGroup() {
6 return self::GROUP_OTHER;
9 protected function executeChecks() {
10 if (!extension_loaded('fileinfo')) {
11 $message = pht(
12 "The '%s' extension is not installed. Without '%s', ".
13 "support, Phabricator may not be able to determine the MIME types ".
14 "of uploaded files.",
15 'fileinfo',
16 'fileinfo');
18 $this->newIssue('extension.fileinfo')
19 ->setName(pht("Missing '%s' Extension", 'fileinfo'))
20 ->setMessage($message);