From 09a844fffc39adf5a082dc1bd4b953a83ddb2a73 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 3 Jan 2009 05:50:17 +0000 Subject: No quickedit for album-- for real this time. --- core/helpers/core_block.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index be2c138b..8ce0c8ca 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -25,8 +25,7 @@ class core_block_Core { $buf .= ""; } - if ($theme->page_type == "album" && $theme->item()->type == "photo" && - access::can("edit", $theme->item())) { + if ($theme->page_type == "album" && access::can("edit", $theme->item())) { $buf .= ""; $buf .= html::script("core/js/quickedit.js"); @@ -35,14 +34,14 @@ class core_block_Core { } public static function thumb_top($theme, $child) { - if (access::can("edit", $child)) { + if ($child->type == "photo" && access::can("edit", $child)) { $edit_link = url::site("quick/edit/$child->id"); return "
"; } } public static function thumb_bottom($theme, $child) { - if (access::can("edit", $child)) { + if ($child->type == "photo" && access::can("edit", $child)) { return "
"; } } -- cgit v1.2.3