From a4ecc1017c4553e5b179da632b85383c6ff8174d Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sat, 30 Aug 2003 07:15:36 +0000 Subject: [PATCH] formating --- phpgwapi/inc/class.common.inc.php | 33 ++++++++++++++++--------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index b885b3e197..bc1312d129 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1128,22 +1128,23 @@ $tpl->set_file('css', 'css.tpl'); $tpl->set_var($GLOBALS['phpgw_info']['theme']); $app_css = ''; - if(@isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) - { - list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); - if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css']) - { - $app_css .= $GLOBALS[$class]->css(); - } - if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['java_script']) - { - $java_script = $GLOBALS[$class]->java_script(); - } - } - if (isset($GLOBALS['phpgw_info']['flags']['css'])) - { - $app_css .= $GLOBALS['phpgw_info']['flags']['css']; - } + + if(@isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) + { + list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); + if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['css']) + { + $app_css .= $GLOBALS[$class]->css(); + } + if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['java_script']) + { + $java_script = $GLOBALS[$class]->java_script(); + } + } + if (isset($GLOBALS['phpgw_info']['flags']['css'])) + { + $app_css .= $GLOBALS['phpgw_info']['flags']['css']; + } $tpl->set_var('app_css', $app_css); return $tpl->subst('css');