]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add notice source data on install
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:44:29 +0000 (05:44 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:44:29 +0000 (05:44 -0800)
install.php

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