]> git.mxchange.org Git - friendica.git/blobdiff - mod/install.php
Oh no ... there are still some notices that want to be removed ...
[friendica.git] / mod / install.php
index 11031acf460b1f0a82ffa00856628c73ca23fb8d..fa20fd76cbeda3cb25f731c000f5efdecfaffe53 100644 (file)
@@ -72,7 +72,20 @@ function install_post(App $a) {
                        // connect to db
                        DBA::connect($dbhost, $dbuser, $dbpass, $dbdata);
 
-                       Install::install($urlpath, $dbhost, $dbuser, $dbpass, $dbdata, $phpath, $timezone, $language, $adminmail);
+                       $errors = Install::createConfig($urlpath, $dbhost, $dbuser, $dbpass, $dbdata, $phpath, $timezone, $language, $adminmail);
+
+                       if ($errors) {
+                               $a->data['db_failed'] = $errors;
+                               return;
+                       }
+
+                       $errors = Install::installDatabaseStructure();
+
+                       if ($errors) {
+                               $a->data['db_failed'] = $errors;
+                       } else {
+                               $a->data['db_installed'] = true;
+                       }
 
                        return;
                break;