From ce8528e5c62c0fad772493139c87ac6e8cfbe428 Mon Sep 17 00:00:00 2001 From: skeeter Date: Tue, 18 Sep 2001 03:50:00 +0000 Subject: [PATCH] Fixes for mdeans finding if the server has users choice and a users choice has been selected. --- phpgwapi/inc/class.common.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 7f563fde13..a8421f29ec 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -643,6 +643,11 @@ $appname = 'phpgwapi'; } + if (!isset($GLOBALS['phpgw_info']['server']['template_set']) && isset($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'])) + { + $GLOBALS['phpgw_info']['server']['template_set'] = $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']; + } + // Setting this for display of template choices in user preferences if ($GLOBALS['phpgw_info']['server']['template_set'] == 'user_choice') {