* add new version and upgrade.

This commit is contained in:
wangyidong
2016-06-28 15:01:49 +08:00
parent 3e402d5459
commit ebe6a57fff
6 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
8.2.3
8.2.4
+1 -1
View File
@@ -17,7 +17,7 @@ if(!function_exists('getWebRoot')){function getWebRoot(){}}
/* Basic settings. */
$config = new config();
$config->version = '8.2.3'; // The version of zentaopms. Don't change it.
$config->version = '8.2.4'; // The version of zentaopms. Don't change it.
$config->charset = 'UTF-8'; // The charset of zentaopms.
$config->cookieLife = time() + 2592000; // The cookie life time.
$config->timezone = 'Asia/Shanghai'; // The time zone setting, for more see http://www.php.net/manual/en/timezones.php
+1
View File
@@ -104,3 +104,4 @@ $lang->upgrade->fromVersions['8_2_beta'] = '8.2.beta';
$lang->upgrade->fromVersions['8_2'] = '8.2';
$lang->upgrade->fromVersions['8_2_1'] = '8.2.1';
$lang->upgrade->fromVersions['8_2_2'] = '8.2.2';
$lang->upgrade->fromVersions['8_2_3'] = '8.2.3';
+1
View File
@@ -104,3 +104,4 @@ $lang->upgrade->fromVersions['8_2_beta'] = '8.2.beta';
$lang->upgrade->fromVersions['8_2'] = '8.2';
$lang->upgrade->fromVersions['8_2_1'] = '8.2.1';
$lang->upgrade->fromVersions['8_2_2'] = '8.2.2';
$lang->upgrade->fromVersions['8_2_3'] = '8.2.3';
+1
View File
@@ -104,3 +104,4 @@ $lang->upgrade->fromVersions['8_2_beta'] = '8.2.beta';
$lang->upgrade->fromVersions['8_2'] = '8.2';
$lang->upgrade->fromVersions['8_2_1'] = '8.2.1';
$lang->upgrade->fromVersions['8_2_2'] = '8.2.2';
$lang->upgrade->fromVersions['8_2_3'] = '8.2.3';
+2
View File
@@ -145,6 +145,7 @@ class upgradeModel extends model
case '8_2_1':
$this->execSQL($this->getUpgradeFile('8.2.1'));
case '8_2_2':
case '8_2_3':
default: if(!$this->isError()) $this->setting->updateVersion($this->config->version);
}
@@ -225,6 +226,7 @@ class upgradeModel extends model
case '8_2':
case '8_2_1': $confirmContent .= file_get_contents($this->getUpgradeFile('8.2.1'));
case '8_2_2':
case '8_2_3':
}
return str_replace('zt_', $this->config->db->prefix, $confirmContent);
}