From 5f3efa958b10d85e88e4395374b3c6ebdf188bc0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 16 Aug 2010 14:07:10 -0400 Subject: [PATCH] MFB: Don't show download as zip link if we can't actually do it. Bug: 9178 --- ansel/lib/View/GalleryRenderer/Gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/View/GalleryRenderer/Gallery.php b/ansel/lib/View/GalleryRenderer/Gallery.php index be2ad59c8..8ab7e0503 100644 --- a/ansel/lib/View/GalleryRenderer/Gallery.php +++ b/ansel/lib/View/GalleryRenderer/Gallery.php @@ -108,7 +108,7 @@ class Ansel_View_GalleryRenderer_Gallery extends Ansel_View_GalleryRenderer_Base $count = 0; $action_links = array(); $url = new Horde_Url('#'); - if ($GLOBALS['conf']['gallery']['downloadzip']) { + if ($GLOBALS['conf']['gallery']['downloadzip'] && $registry->getAuth()) { $action_links[] = $url->link(array('class' => 'widget', 'onclick.raw' => 'downloadSelected(); return false;')) . _("Download selected images") . ''; } if (!empty($option_edit)) { -- 2.11.0