From: Evan Prodromou Date: Wed, 4 Mar 2009 13:44:29 +0000 (-0800) Subject: add notice source data on install X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07efccd7ef274f6d6f2b28781a87ec7271702a7f;p=quix0rs-gnu-social.git add notice source data on install --- diff --git a/install.php b/install.php index 29d9094175..fbfd5e4d11 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);