diff options
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r-- | core/helpers/core_block.php | 7 |
1 files changed, 3 insertions, 4 deletions
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 .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . url::file("core/css/debug.css") . "\" />"; } - 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 .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . url::file("core/css/quickedit.css") . "\" />"; $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 "<div class=\"gQuickEdit\" quickedit_link=\"$edit_link\">"; } } public static function thumb_bottom($theme, $child) { - if (access::can("edit", $child)) { + if ($child->type == "photo" && access::can("edit", $child)) { return "</div>"; } } |