diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 67e2cf964b..e721aed28d 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -257,7 +257,7 @@ { $parent_select = " AND cat_parent='$parent_id'"; } - else + else { $parent_select = " AND cat_parent='0'"; } diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 222399d819..b6fc127fb6 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -6,7 +6,7 @@ * and Mark Peters * * and Bettina Gille [ceb@phpgroupware.org] * * Commononly used functions by phpGroupWare developers * - * Copyright (C) 2000 - 2002 Dan Kuykendall * + * Copyright (C) 2000 - 2003 Dan Kuykendall * * ------------------------------------------------------------------------ * * This library is part of the phpGroupWare API * * http://www.phpgroupware.org/api * @@ -1236,7 +1236,7 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info' $var['about_statustext'] = $GLOBALS['phpgw_info']['navbar']['about']['title']; $var['help_statustext'] = $GLOBALS['phpgw_info']['navbar']['help']['title']; - if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers']) + if (isset($GLOBALS['phpgw_ifo']['navbar']['admin']) && isset($GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])) { $var['current_users'] = lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total(); $var['url_current_users'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions'); @@ -1319,6 +1319,7 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info' $var['app_tpl'] = ''; $menuaction = get_var('menuaction',Array('GET')); + if ($menuaction && $GLOBALS['phpgw_info']['flags']['xslt_app']) { list($app,$class,$method) = explode('.',$menuaction); @@ -1334,33 +1335,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info' $var['top_spacer_middle_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','top_spacer_middle'); $var['navbar_format'] = $GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']; - if (isset($GLOBALS['phpgw_info']['flags']['app_header'])) - { - $var['app_header'] = $GLOBALS['phpgw_info']['flags']['app_header']; - } - $var['java_script'] = $var['app_css'] = ''; - if (isset($_GET['menuaction'])) - { - list($app,$class,$method) = explode('.',$_GET['menuaction']); - $class = CreateObject("$app.$class"); - if (isset($class->public_functions['css'])) - { - $var['app_css'] = $class->css(); - } - if (isset($class->public_functions['java_script'])) - { - $var['java_script'] = $class->java_script(); - } - unset($class); - } - if (isset($GLOBALS['phpgw_info']['flags']['css'])) - { - $var['app_css'] .= $GLOBALS['phpgw_info']['flags']['css']; - } - if (isset($GLOBALS['phpgw_info']['flags']['java_script'])) - { - $var['java_script'] .= $GLOBALS['phpgw_info']['flags']['java_script']; - } $GLOBALS['phpgw']->xslttpl->set_var('phpgw',$var); } @@ -1652,7 +1626,6 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info' $this->stop_xslt_capture(); } - $this->framework(); $GLOBALS['phpgw']->xslttpl->pp(); $GLOBALS['phpgw']->db->disconnect(); diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index a9e5c82686..8639f762d4 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -404,6 +404,8 @@ $GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False; } + $GLOBALS['phpgw']->common->framework(); + $GLOBALS['phpgw']->template->set_root(PHPGW_APP_TPL); $GLOBALS['phpgw']->xslttpl->set_root(PHPGW_APP_TPL);