changes on the user/personal prefs of the admin should have imidate effect

This commit is contained in:
Ralf Becker 2003-04-02 18:00:03 +00:00
parent 6b1cfa855e
commit 1174106632

View File

@ -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