summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-03 05:50:17 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-03 05:50:17 +0000
commit09a844fffc39adf5a082dc1bd4b953a83ddb2a73 (patch)
tree6143146c1bb2362f97202fa36fe43eac61f4d268 /core
parentd299414399bf7bff32900f6d32322dcb830dad81 (diff)
No quickedit for album-- for real this time.
Diffstat (limited to 'core')
-rw-r--r--core/helpers/core_block.php7
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>";
}
}