From 5c1b7eddaa49210007a59f04addc95d97764f7cf Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 05:12:48 +0000 Subject: [PATCH] r999: Adding the new settings that we created as default values --- install/upgrade2.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install/upgrade2.php b/install/upgrade2.php index 007cd60..e7ebded 100644 --- a/install/upgrade2.php +++ b/install/upgrade2.php @@ -219,14 +219,21 @@ if ($bugsys->in['mark'] == 6) ?>

Version Number Change

-

This step finishes the upgrade by inreasing your version number.

+

This step finishes the upgrade by inreasing your version number and then updating other settings.

query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.1.0 Beta 1' WHERE varname = 'trackerversion'"); + $db->query("INSERT INTO " . TABLE_PREFIX . "setting (varname, value) VALUES ('syndicateditems', '" . $settings['general']['syndicateditems'][1] . "')"); + $db->query("INSERT INTO " . TABLE_PREFIX . "setting (varname, value) VALUES ('hidestatuses', '" . $settings['display']['hidestatuses'][1] . "')"); + $db->query("INSERT INTO " . TABLE_PREFIX . "setting (varname, value) VALUES ('defaultsortkey', '" . $setting['display']['defaultsortkey'][1] . "')"); + $db->query("INSERT INTO " . TABLE_PREFIX . "setting (varname, value) VALUES ('defaultsortas', '" . $setting['display']['defaultsortas'][1] . "')"); + build_settings(); - + ?> ... done. -- 2.43.5