From b14b9e0d7b22945f4934ff6fac8f89dae119cb8f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 1 Sep 2009 20:23:44 -0700 Subject: 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. --- modules/gallery/helpers/gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/helpers') 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") -- cgit v1.2.3