From d6889066c0d285bf59e89b484800443304585b68 Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 5 Dec 2008 07:25:04 +0000 Subject: Major Refactoring: finish transforming into object . Put and into header.inc.php. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@199 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/toolbar.inc.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'templates/toolbar.inc.php') diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php index 0b052e0..a04b6a0 100644 --- a/templates/toolbar.inc.php +++ b/templates/toolbar.inc.php @@ -1,10 +1,7 @@ isLoggedOn()) { - $cUser = $userservice->getCurrentUser(); $cUserId = $userservice->getCurrentUserId(); - $cUsername = $cUser[$userservice->getFieldName('username')]; - $isAdmin = $userservice->isAdmin($cUser[$userservice->getFieldname('primary')]); + $cUsername = $currentUser->getUsername(); ?>