]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Installer.php
Changed double-quotes to single
[friendica.git] / src / Core / Installer.php
index 7af94c2e1e2d3cd6fe43bb4943487b4a26f9d653..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;
        }