CC-2172 : Create Upgrade structure so that a user can upgrade from any version of Airtime properly
This commit is contained in:
parent
5cfeadcbfe
commit
00e80911c3
|
@ -7,6 +7,8 @@
|
|||
*/
|
||||
|
||||
require_once(dirname(__FILE__).'/include/AirtimeIni.php');
|
||||
set_include_path(__DIR__.'/../library' . PATH_SEPARATOR . get_include_path());
|
||||
require_once __DIR__.'/../application/configs/conf.php';
|
||||
require_once(dirname(__FILE__).'/include/AirtimeInstall.php');
|
||||
|
||||
AirtimeIni::ExitIfNotRoot();
|
||||
|
|
|
@ -171,7 +171,7 @@ class AirtimeInstall {
|
|||
$sql = "DELETE FROM cc_pref WHERE keystr = 'system_version'";
|
||||
$CC_DBC->query($sql);
|
||||
|
||||
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', $p_version)";
|
||||
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '$p_version')";
|
||||
$result = $CC_DBC->query($sql);
|
||||
if (PEAR::isError($result)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue