]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
run foreign services script
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:47:37 +0000 (05:47 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:47:37 +0000 (05:47 -0800)
install.php

index fbfd5e4d119efe4cd628265edeb1d4a8a0782a21..7aa8836c22b48be4060cc3c8f232e619d111554e 100644 (file)
@@ -196,6 +196,13 @@ function handlePost()
         showForm();
         return;
     }
+    updateStatus("Adding foreign service data to database...");
+    $res = runDbScript(INSTALLDIR.'/db/foreign_services.sql', $conn);
+    if ($res === false) {
+        updateStatus("Can't run foreign service script.", true);
+        showForm();
+        return;
+    }
     updateStatus("Writing config file...");
     $sqlUrl = "mysqli://$username:$password@$host/$database";
     $res = writeConf($sitename, $sqlUrl);