diff options
Diffstat (limited to 'templates/sidebar.block.tagactions.php')
-rw-r--r-- | templates/sidebar.block.tagactions.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/sidebar.block.tagactions.php b/templates/sidebar.block.tagactions.php index fd13d98..37bf5c6 100644 --- a/templates/sidebar.block.tagactions.php +++ b/templates/sidebar.block.tagactions.php @@ -1,11 +1,10 @@ <?php -$userservice =& ServiceFactory::getServiceInstance('UserService'); +/* Service creation: only useful services are created */ +//No specific services if ($userservice->isLoggedOn()) { - $currentUser = $userservice->getCurrentUser(); - $currentUsername = $currentUser[$userservice->getFieldName('username')]; - if ($currentUsername == $user) { + if ($currentUser->getUsername() == $user) { $tags = explode('+', $currenttag); $renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags)); $renamelink = createURL('tagrename', $currenttag); |