mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
replace deprecated session->appsession with Api\Cache::(s|g)etSession()
This commit is contained in:
parent
a1b5a57f6f
commit
b29461f013
@ -202,7 +202,7 @@ class notifications_ajax {
|
||||
* @return boolean true
|
||||
*/
|
||||
private function restore_session_data() {
|
||||
$session_data = $GLOBALS['egw']->session->appsession('session_data',self::_appname);
|
||||
$session_data = Api\Cache::getSession(self::_appname, 'session_data');
|
||||
if(is_array($session_data)) {
|
||||
$this->session_data = $session_data;
|
||||
} else {
|
||||
@ -218,7 +218,7 @@ class notifications_ajax {
|
||||
* @return boolean true
|
||||
*/
|
||||
private function save_session_data() {
|
||||
$GLOBALS['egw']->session->appsession('session_data',self::_appname,$this->session_data);
|
||||
Api\Cache::setSession(self::_appname, 'session_data', $this->session_data);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +284,7 @@ class resources_ui
|
||||
if ($use_all)
|
||||
{
|
||||
// get the whole selection
|
||||
$query = is_array($session_name) ? $session_name : $GLOBALS['egw']->session->appsession('session_data', $session_name);
|
||||
$query = is_array($session_name) ? $session_name : Api\Cache::getSession($session_name, 'session_data');
|
||||
|
||||
@set_time_limit(0); // switch off the execution time limit, as it's for big selections to small
|
||||
$query['num_rows'] = -1; // all
|
||||
|
Loading…
Reference in New Issue
Block a user