From 1174106632de615b0290cf372976e61d31e4d553 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Apr 2003 18:00:03 +0000 Subject: [PATCH] changes on the user/personal prefs of the admin should have imidate effect --- preferences/preferences.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/preferences/preferences.php b/preferences/preferences.php index 3f8892832f..3069cd6090 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -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(