mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
now allows changing of preference values
This commit is contained in:
parent
1c61949d9c
commit
a329803c8e
@ -184,7 +184,10 @@
|
||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php");
|
||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php");
|
||||
$this->auth = new auth;
|
||||
$this->preferences = new preferences($phpgw_info["user"]["account_lid"]);
|
||||
$this->preferences = new preferences();
|
||||
$this->preferences->preferences = $phpgw_info["user"]["preferences"];
|
||||
$this->preferences->account_id = $phpgw_info["user"]["account_id"];
|
||||
|
||||
}
|
||||
$this->accounts = new accounts;
|
||||
$this->translation = new translation;
|
||||
|
@ -36,4 +36,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -56,7 +56,7 @@
|
||||
if (PHP_VERSION > "4.0.3pl1") {
|
||||
$phpgw_info = unserialize($db->f("session_info"));
|
||||
} else {
|
||||
$phpgw_info = unserialize(stripslashes($db->f("session_info")));
|
||||
$phpgw_info = unserialize(stripslashes($db->f("session_info")));
|
||||
}
|
||||
|
||||
$phpgw_info["flags"] = $phpgw_info_flags;
|
||||
@ -77,6 +77,8 @@
|
||||
if (! $phpgw_info["user"]["userid"] ) {
|
||||
return False;
|
||||
} else {
|
||||
$phpgw->preferences->preferences = $phpgw_info["user"]["preferences"];
|
||||
$phpgw->preferences->account_id = $phpgw_info["user"]["account_id"];
|
||||
return True;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user