From 7baec1451f2d07977b768b78c76938d78f1a7f57 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 2 Sep 2001 07:24:03 +0000 Subject: [PATCH] Minor cleanups. --- phpgwapi/templates/default/navbar.inc.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/phpgwapi/templates/default/navbar.inc.php b/phpgwapi/templates/default/navbar.inc.php index bb768c0a25..0d26d9a60d 100644 --- a/phpgwapi/templates/default/navbar.inc.php +++ b/phpgwapi/templates/default/navbar.inc.php @@ -84,9 +84,9 @@ $var['current_users'] = ' ' . lang('Current users') . ': ' . $db->f(0) . ''; } - $var['user_info'] = $GLOBALS['phpgw']->common->display_fullname() . " - " - . lang($GLOBALS['phpgw']->common->show_date(time(),"l")) . " " - . lang($GLOBALS['phpgw']->common->show_date(time(),"F")) . " " + $var['user_info'] = $GLOBALS['phpgw']->common->display_fullname() . ' - ' + . lang($GLOBALS['phpgw']->common->show_date(time(),"l")) . ' ' + . lang($GLOBALS['phpgw']->common->show_date(time(),"F")) . ' ' . $GLOBALS['phpgw']->common->show_date(time(),"d, Y"); // Maybe we should create a common function in the phpgw_accounts_shared.inc.php file @@ -107,7 +107,7 @@ { $var['messages'] = $api_messages . '
' . checkcode($cd); } - $tpl->set_Var($var); + $tpl->set_var($var); $tpl->pfp('out','navbar'); // If the application has a header include, we now include it if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && $GLOBALS['menuaction']) @@ -125,8 +125,6 @@ { if ($GLOBALS['phpgw_info']['server']['showpoweredbyon'] == 'bottom') { - $msg = "

\n" . lang('Powered by phpGroupWare version x', $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); - $tpl = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); @@ -137,7 +135,7 @@ ); $var = Array( 'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], - 'msg' => $msg, + 'msg' => "

\n".lang('Powered by phpGroupWare version x',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']), 'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] ); $tpl->set_var($var);