friendica-6667 Installer needs to check fileinfo module

This commit is contained in:
Philipp Holzer
2019-02-16 22:13:19 +01:00
parent 12ff467a9b
commit 11a7f97fe7
2 changed files with 23 additions and 1 deletions

View File

@@ -357,6 +357,7 @@ class Installer
* - mb_string
* - XML
* - iconv
* - fileinfo
* - POSIX
*
* @return bool false if something required failed
@@ -452,6 +453,13 @@ class Installer
);
$returnVal = $returnVal ? $status : false;
$status = $this->checkFunction('finfo_open',
L10n::t('File Information PHP module'),
L10n::t('Error: File Information PHP module required but not installed.'),
true
);
$returnVal = $returnVal ? $status : false;
return $returnVal;
}