From ef0e0dcfa97aeef228e61dedb09850a1074746a4 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 18 Jul 2011 12:11:59 -0400 Subject: [PATCH] CC-2548: Update from 1.9-beta2 to beta4, doesn't update the version tag in About -fixed --- install/include/airtime-upgrade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/include/airtime-upgrade.php b/install/include/airtime-upgrade.php index ce7ac7077..eb0dd2aa0 100644 --- a/install/include/airtime-upgrade.php +++ b/install/include/airtime-upgrade.php @@ -8,7 +8,9 @@ //Pear classes. set_include_path(__DIR__.'/../../airtime_mvc/library/pear' . PATH_SEPARATOR . get_include_path()); + require_once('DB.php'); +require_once(__DIR__.'/../../airtime_mvc/application/configs/constants.php'); require_once(dirname(__FILE__).'/AirtimeIni.php'); if(exec("whoami") != "root"){ @@ -87,7 +89,9 @@ if (strcmp($version, "1.9.0") < 0){ //set the new version in the database. $sql = "DELETE FROM cc_pref WHERE keystr = 'system_version'"; $CC_DBC->query($sql); -$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '1.9.0-devel')"; + +$newVersion = AIRTIME_VERSION; +$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '$newVersion')"; $CC_DBC->query($sql);