X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FInstaller.php;h=b6090bddb60f667e2be9919036aad4d5eb455226;hb=11e39da6ccd4ff86be95de6af9e6f84ca67996d9;hp=4a287a885f50e9d5e47988de099608fe567f4e74;hpb=b321ef776d56d999cf74718c345bcbcaa2c27747;p=friendica.git diff --git a/src/Core/Installer.php b/src/Core/Installer.php index 4a287a885f..b6090bddb6 100644 --- a/src/Core/Installer.php +++ b/src/Core/Installer.php @@ -6,11 +6,12 @@ namespace Friendica\Core; use DOMDocument; use Exception; -use Friendica\Core\Config\ConfigCache; +use Friendica\Core\Config\Cache\IConfigCache; use Friendica\Database\DBA; use Friendica\Database\DBStructure; use Friendica\Object\Image; use Friendica\Util\Network; +use Friendica\Util\Profiler; use Friendica\Util\Strings; /** @@ -357,6 +358,7 @@ class Installer * - mb_string * - XML * - iconv + * - fileinfo * - POSIX * * @return bool false if something required failed @@ -452,6 +454,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; } @@ -582,7 +591,9 @@ class Installer /** * Checking the Database connection and if it is available for the current installation * - * @param ConfigCache $configCache The configuration cache + * @param string $basePath The basepath of this call + * @param IConfigCache $configCache The configuration cache + * @param Profiler $profiler The profiler of this app * @param string $dbhost Hostname/IP of the Friendica Database * @param string $dbuser Username of the Database connection credentials * @param string $dbpass Password of the Database connection credentials @@ -591,9 +602,9 @@ class Installer * @return bool true if the check was successful, otherwise false * @throws Exception */ - public function checkDB(ConfigCache $configCache, $dbhost, $dbuser, $dbpass, $dbdata) + public function checkDB($basePath, IConfigCache $configCache, Profiler $profiler, $dbhost, $dbuser, $dbpass, $dbdata) { - if (!DBA::connect($configCache, $dbhost, $dbuser, $dbpass, $dbdata)) { + if (!DBA::connect($basePath, $configCache, $profiler, $dbhost, $dbuser, $dbpass, $dbdata)) { $this->addCheck(L10n::t('Could not connect to database.'), false, true, ''); return false;