]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
make the bookmark page valid xhtml
authorChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 08:18:52 +0000 (10:18 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 08:18:52 +0000 (10:18 +0200)
data/templates/bookmarks.tpl.php

index e32d3c9e35b52b5d515904f0af78993ccd7516bd..29d724815d6729513aa650b7c9ecab1d7b3467e6 100644 (file)
@@ -62,12 +62,16 @@ if($currenttag!= '' && $cdservice->getLastTagDescription($currenttag)) {
 }
 
 //common tag description edit
-if($userservice->isLoggedOn()) {
-       if($currenttag!= '' && ($GLOBALS['enableCommonTagDescriptionEditedByAll'] || $currentUser->isAdmin())) {
+if ($userservice->isLoggedOn()) {
+       if ($currenttag != ''
+        && ($GLOBALS['enableCommonTagDescriptionEditedByAll']
+            || $currentUser->isAdmin()
+        )
+    ) {
                echo ' <a href="'. createURL('tagcommondescriptionedit', $currenttag).'" title="'.T_('Edit the common description of this tag').'">';
                echo !is_array($cDescription) || strlen($cDescription['cdDescription'])==0?T_('Edit the common description of this tag'):'';
                echo ' <img src="'.ROOT.'images/b_edit.png" /></a>';
-       } elseif(isset($hash)) {
+       } else if (isset($hash)) {
                echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'" title="'.T_('Edit the common description of this bookmark').'">';
                echo T_('Edit the common description of this bookmark').'</a>)';
        }
@@ -312,7 +316,7 @@ if ($currenttag!= '') {
                 . $row['username'] . '</a>';
                }
 
-               // Udders!
+               // others
                if (!isset($hash)) {
                        $others = $otherCounts[$row['bAddress']];
                        $ostart = '<a href="' . createURL('history', $row['bHash']) . '">';
@@ -390,7 +394,7 @@ if ($currenttag!= '') {
                echo '  <div' . $adminBgClass . '>' . "\n";
 
                echo '   <div class="link">'
-            . '<a href="'. $address .'"'. $rel .' class="taggedlink" target="_blank">'
+            . '<a href="'. htmlspecialchars($address) .'"'. $rel .' class="taggedlink">'
             . filter($row['bTitle'])
             . '</a>' . $adminStar . "</div>\n";
                if ($row['bDescription'] == '') {