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,9 +347,16 @@
$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
{
$show_help = $user['show_help']; // use it, if admin changes his help-prefs
if ($user['show_help'] != '')
{
$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(