summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-20 05:22:59 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-20 05:22:59 +1000
commit78aba88f46c46e5a3aadfd1aada2ea467711d8b1 (patch)
tree3d910f8fa9b06d6d3a5adcc7c19a47fcba97b75b
parentf7ed681eac34d6015425ad26cb7de383969d6cae (diff)
updated install.php -> v0.9.2.1-dev
-rw-r--r--install.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/install.php b/install.php
index 93b98af7..856a84e6 100644
--- a/install.php
+++ b/install.php
@@ -22,11 +22,14 @@
// Check the version number
$version = file_get_contents($config['has_installed']);
+ if(empty($version))
+ $version = 'v0.9.1';
+
switch($version) {
case '':
case 'v0.9':
case 'v0.9.1':
- // Upgrading to v0.9.2-dev
+ // Upgrade to v0.9.2-dev
$boards = listBoards();
foreach($boards as &$_board) {
@@ -48,7 +51,7 @@
query(sprintf("CREATE TABLE IF NOT EXISTS `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text NOT NULL, `time` int(11) NOT NULL, `subject` text NOT NULL, `body` text NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;", $board['uri'])) or error(db_error());
$page['title'] = 'Upgraded';
- $page['body'] = '<p style="text-align:center">Successfully upgraded from v0.9 (or v0.9.1) to <strong>' . VERSION . '</strong>.</p>';
+ $page['body'] = '<p style="text-align:center">Successfully upgraded from ' . $version . ' to <strong>' . VERSION . '</strong>.</p>';
break;
default:
$page['title'] = 'Unknown version';