mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
better way of handling preferences
This commit is contained in:
parent
4249f50a03
commit
d674b1e46b
@ -183,8 +183,8 @@
|
|||||||
$this->session = new sessions;
|
$this->session = new sessions;
|
||||||
|
|
||||||
if ($phpgw_info["flags"]["currentapp"] == "login") {
|
if ($phpgw_info["flags"]["currentapp"] == "login") {
|
||||||
$log = explode("@",$login);
|
$log = explode("@",$login);
|
||||||
$this->preferences = new preferences($log[0]);
|
$this->preferences = new preferences($log[0]);
|
||||||
}else{
|
}else{
|
||||||
if (! $this->session->verify()) {
|
if (! $this->session->verify()) {
|
||||||
$this->db->query("select config_value from config where config_name='webserver_url'",__LINE__,__FILE__);
|
$this->db->query("select config_value from config where config_name='webserver_url'",__LINE__,__FILE__);
|
||||||
@ -192,9 +192,7 @@
|
|||||||
Header("Location: " . $this->redirect($this->link($this->db->f("config_value")."/login.php","cd=10")));
|
Header("Location: " . $this->redirect($this->link($this->db->f("config_value")."/login.php","cd=10")));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$this->preferences->preference = $phpgw_info["user"]["preferences"];
|
$this->preferences = new preferences($phpgw_info["user"]["account_id"]);
|
||||||
$this->preferences->account_id = $phpgw_info["user"]["account_id"];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->translation = new translation;
|
$this->translation = new translation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user