summaryrefslogtreecommitdiff
path: root/core/helpers/core_block.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r--core/helpers/core_block.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index d161d9b4..be2c138b 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -25,7 +25,8 @@ class core_block_Core {
$buf .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
url::file("core/css/debug.css") . "\" />";
}
- if ($theme->page_type == "album" && access::can("edit", $theme->item())) {
+ if ($theme->page_type == "album" && $theme->item()->type == "photo" &&
+ 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");