mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
changes on the user/personal prefs of the admin should have imidate effect
This commit is contained in:
parent
6b1cfa855e
commit
1174106632
@ -347,10 +347,17 @@
|
|||||||
$GLOBALS['phpgw']->redirect_link('/preferences/index.php');
|
$GLOBALS['phpgw']->redirect_link('/preferences/index.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences' && $user['show_help'] != '')
|
if ($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences') // changes for the admin itself
|
||||||
|
{
|
||||||
|
if ($user['show_help'] != '')
|
||||||
{
|
{
|
||||||
$show_help = $user['show_help']; // use it, if admin changes his help-prefs
|
$show_help = $user['show_help']; // use it, if admin changes his help-prefs
|
||||||
}
|
}
|
||||||
|
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] != $user['lang'])
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw']->redirect_link('/preferences/preferences.php','appname='.$_GET['appname']);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->session->appsession('session_data','preferences',array(
|
$GLOBALS['phpgw']->session->appsession('session_data','preferences',array(
|
||||||
'type' => $GLOBALS['type'], // save our state in the app-session
|
'type' => $GLOBALS['type'], // save our state in the app-session
|
||||||
|
Loading…
Reference in New Issue
Block a user