From a909830717a094fe07f9e4a7ded8a2cf64413eff Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 18 Sep 2007 08:38:19 +0200 Subject: [PATCH] [svn r13062] Added version information to the write_config_file() function --- main/install/install_upgrade.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/install/install_upgrade.lib.php b/main/install/install_upgrade.lib.php index 3c6ca8158c..210ecdfabb 100644 --- a/main/install/install_upgrade.lib.php +++ b/main/install/install_upgrade.lib.php @@ -157,7 +157,6 @@ function write_courses_htaccess_file($url_append) */ function write_dokeos_config_file($path) { - global $dokeos_version; global $dbHostForm; global $dbUsernameForm; global $dbPassForm; @@ -176,6 +175,8 @@ function write_dokeos_config_file($path) global $installType; global $updatePath; global $session_lifetime; + global $new_version; + global $new_version_stable; $rootSys = realpath($pathForm).'/'; $garbageDir = realpath('../garbage/').'/'; //change paths if updating @@ -208,6 +209,8 @@ function write_dokeos_config_file($path) $config['{SECURITY_KEY}'] = md5(uniqid(rand().time())); $config['{ENCRYPT_PASSWORD}'] = trueFalse($encryptPassForm); $config['{SESSION_LIFETIME}'] = $session_lifetime; + $config['{NEW_VERSION}'] = $new_version; + $config['{NEW_VERSION_STABLE}'] = trueFalse($new_version_stable); foreach ($config as $key => $value) { $content = str_replace($key, $value, $content);