diff options
Diffstat (limited to 'templates/admin.tpl.php')
-rw-r--r-- | templates/admin.tpl.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/admin.tpl.php b/templates/admin.tpl.php index 35b97c7..ac288bd 100644 --- a/templates/admin.tpl.php +++ b/templates/admin.tpl.php @@ -1,9 +1,4 @@ <?php
- -/* Service creation: only useful services are created */
-$userservice =& ServiceFactory::getServiceInstance('UserService'); - -$currentObjectUser = $userservice->getCurrentObjectUser();
$this->includeTemplate($GLOBALS['top_include']); @@ -18,7 +13,7 @@ foreach($users as $user) { echo '<a href="'.createURL('profile', $user->getUsername()).'">'.$user->getUsername().'</a>';
echo '</div>';
- if($user->getUsername() != $currentObjectUser->getUsername()) {
+ if($user->getUsername() != $currentUser->getUsername()) {
echo '<div class="meta">';
echo '<a href="'.createURL('admin','delete/'.$user->getUsername()).'" onclick="return confirm(\''.T_('Are you sure?').'\');">'.T_('Delete').'</a>';
echo '</div>'; |