summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-01 20:23:44 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-01 20:23:44 -0700
commitb14b9e0d7b22945f4934ff6fac8f89dae119cb8f (patch)
tree06ada9b929b70f7c4d350daec2332dd1aec96dd1
parent2ec11c5c4da1eb1d45b192d2df9c1a08c71d7362 (diff)
Allow anything to be made an album cover, except for direct children
of the root album (which has no visible album cover, so no point in offering that option). This fully resolves #705.
-rw-r--r--modules/gallery/helpers/gallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index adfc7fd2..f72ef982 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -268,7 +268,7 @@ class gallery_Core {
} else {
$disabledState = " ";
}
- if ($item->is_photo()) {
+ if ($item->parent()->id != 1) {
$options_menu
->append(Menu::factory("ajax_link")
->id("make_album_cover")