]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix bug #2674961: editAllowed optimization - make less queries for each bookmark
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 22 Sep 2009 06:21:45 +0000 (06:21 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 22 Sep 2009 06:21:45 +0000 (06:21 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@367 b3834d28-1941-0410-a4f8-b48e95affb8f

templates/bookmarks.tpl.php

index e27bc3e64488bdde262548235e1e2d826b738886..2b673b7ada76a5726e0cb0612592d4f559ad56d7 100644 (file)
@@ -227,7 +227,7 @@ if($currenttag!= '') {
 
                // Edit and delete links
                $edit = '';
-               if ($bookmarkservice->editAllowed($row['bId'])) {
+               if ($bookmarkservice->editAllowed($row)) {
                        $edit = ' - <a href="'. createURL('edit', $row['bId']) .'">'. T_('Edit') .'</a><script type="text/javascript">document.write(" - <a href=\"#\" onclick=\"deleteBookmark(this, '. $row['bId'] .'); return false;\">'. T_('Delete') .'<\/a>");</script>';
                }