* add 7.4 version.

This commit is contained in:
wangyidong
2015-11-13 13:27:29 +08:00
parent dca7ad86fa
commit 786b78a025
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
7.3.stable
7.4.stable
+1 -1
View File
@@ -17,7 +17,7 @@ if(!function_exists('getWebRoot')){function getWebRoot(){}}
/* Basic settings. */
$config = new config();
$config->version = '7.3'; // The version of zentaopms. Don't change it.
$config->version = '7.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
+2 -2
View File
@@ -970,14 +970,14 @@ class upgradeModel extends model
*/
public function adjustPriv7_4()
{
$groups = $this->dao->select('id')->from(TABLE_GROUP)->where('name')->eq('guest')->fetchAll();
$groups = $this->dao->select('id')->from(TABLE_GROUP)->where('name')->ne('guest')->fetchPairs('id', 'id');
foreach($groups as $groupID)
{
$groupPriv = new stdclass();
$groupPriv->group = $groupID;
$groupPriv->module = 'my';
$groupPriv->method = 'unbind';
$this->dao->replae(TABLE_GROUPPRIV)->data($data)->exec();
$this->dao->replace(TABLE_GROUPPRIV)->data($groupPriv)->exec();
}
return true;