summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-04 05:44:29 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-04 05:44:29 -0800
commit07efccd7ef274f6d6f2b28781a87ec7271702a7f (patch)
tree8ccf4377c2a44d17ac1d11ea821be34e04d1451e /install.php
parentf53b6470cf6a8da02d44c85ce30214414d866646 (diff)
add notice source data on install
Diffstat (limited to 'install.php')
-rw-r--r--install.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.php b/install.php
index 29d909417..fbfd5e4d1 100644
--- a/install.php
+++ b/install.php
@@ -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);