diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 05:44:29 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-04 05:44:29 -0800 |
commit | 07efccd7ef274f6d6f2b28781a87ec7271702a7f (patch) | |
tree | 8ccf4377c2a44d17ac1d11ea821be34e04d1451e | |
parent | f53b6470cf6a8da02d44c85ce30214414d866646 (diff) |
add notice source data on install
-rw-r--r-- | install.php | 7 |
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); |