]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Installer.php
Changed double-quotes to single
[friendica.git] / src / Core / Installer.php
index 516408b4e3eb9885f1855ed89b3297ebfcd3deb3..9a9bdfb5f79f0cc5f72e7ecf547ba012bec45729 100644 (file)
@@ -189,14 +189,12 @@ class Installer
        /***
         * Installs the DB-Scheme for Friendica
         *
-        * @param string $basePath The base path of this application
-        *
         * @return bool true if the installation was successful, otherwise false
         * @throws Exception
         */
-       public function installDatabase($basePath)
+       public function installDatabase(): bool
        {
-               $result = DBStructure::install($basePath);
+               $result = DBStructure::install();
 
                if ($result) {
                        $txt = DI::l10n()->t('You may need to import the file "database.sql" manually using phpmyadmin or mysql.') . EOL;
@@ -488,6 +486,13 @@ class Installer
                );
                $returnVal = $returnVal ? $status : false;
 
+               $status = $this->checkFunction('gmp_strval',
+                       DI::l10n()->t('GNU Multiple Precision PHP module'),
+                       DI::l10n()->t('Error: GNU Multiple Precision PHP module required but not installed.'),
+                       true
+               );
+               $returnVal = $returnVal ? $status : false;
+
                return $returnVal;
        }
 
@@ -656,7 +661,7 @@ class Installer
         * @return bool true if the check was successful, otherwise false
         * @throws Exception
         */
-       public function checkDB(Database $dba)
+       public function checkDB(Database $dba): bool
        {
                $dba->reconnect();