]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 9 Feb 2009 13:10:16 +0000 (13:10 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 9 Feb 2009 13:10:16 +0000 (13:10 +0000)
templates/bookmarks.tpl.php

index 4040133d0a87f4cd8da76dfaf2414a7adfbd00b8..adb6b24cdf29df6e2c3ffbcf5df1572aa13218cb 100644 (file)
@@ -159,11 +159,11 @@ if($currenttag!= '') {
                $update = ' <small>('. T_('update') .' '. date($GLOBALS['shortdate'], strtotime($row['bModified'])). ') </small>';
 
                // User attribution
-               $copy = '';
-               if ($user == '' || isset($watched)) {
-                       $copy = ' '. T_('by') .' <a href="'. createURL('bookmarks', $row['username']) .'">'. $row['username'] .'</a>';                  
+               $copy = ' '. T_('by'). ' ';
+               if($userservice->isLoggedOn() && $currentUser->getUsername() ==  $row['username']) {
+                       $copy.= T_('you');                      
                } else {
-                       $copy = ' '. T_('by') . ' ' . T_('you'); 
+                       $copy.= '<a href="'. createURL('bookmarks', $row['username']) .'">'. $row['username'] .'</a>';
                }
 
                // Udders!