aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 06:21:45 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-22 06:21:45 +0000
commit972ac7bbd60906891efabefa649858818d7a9c8e (patch)
tree2c5e8ea9674e04a84801dd706b3d3a37f584da0b /templates
parent724d9fa421dad542a9ea74f14cd8b43ec44e22d3 (diff)
downloadsemanticscuttle-972ac7bbd60906891efabefa649858818d7a9c8e.tar.gz
semanticscuttle-972ac7bbd60906891efabefa649858818d7a9c8e.tar.bz2
Fix bug #2674961: editAllowed optimization - make less queries for each bookmark
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@367 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates')
-rw-r--r--templates/bookmarks.tpl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index e27bc3e..2b673b7 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -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>';
}