[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.42,1.43
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.42,1.43 |
Date: |
Sat, 12 Jan 2002 22:58:43 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv15030/phpgwapi/inc
Modified Files:
class.preferences.inc.php
Log Message:
Added a call to sessions->delete_cache() and a call to re-read the users
session data when being set to the default preferences set by the admin.
Index: class.preferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.preferences.inc.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** class.preferences.inc.php 11 Jan 2002 02:01:24 -0000 1.42
--- class.preferences.inc.php 13 Jan 2002 03:58:41 -0000 1.43
***************
*** 240,243 ****
--- 240,244 ----
if
($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id ==
$GLOBALS['phpgw_info']['user']['account_id'])
{
+
$GLOBALS['phpgw']->session->delete_cache($this->account_id);
$GLOBALS['phpgw']->session->read_repositories(False);
}
***************
*** 262,265 ****
--- 263,272 ----
. $this->db->f('preference_value') .
"')",__LINE__,__FILE__);
}
+
+ if
($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $account_id ==
$GLOBALS['phpgw_info']['user']['account_id'])
+ {
+
$GLOBALS['phpgw']->session->read_repositories(False);
+ }
+
}
***************
*** 508,511 ****
--- 515,519 ----
if (!(isset($acctnum)) || ((string)$acctnum == ''))
{
+ settype($acctnum,'integer');
// account 0 is the default email account
$acctnum = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.42,1.43,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.21,1.22
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.120,1.121 class.sessions_db.inc.php,1.1,1.2 class.sessions_php4.inc.php,1.5,1.6
- Previous by thread:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.21,1.22
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.120,1.121 class.sessions_db.inc.php,1.1,1.2 class.sessions_php4.inc.php,1.5,1.6
- Index(es):