From 9aa4da6c3bbac2500b37a093b3ae24c679a6b010 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 17 Aug 2010 11:23:43 -0400 Subject: [PATCH] MFB: Return image count. Bug: 9181 --- ansel/lib/GalleryMode/Date.php | 2 +- ansel/lib/GalleryMode/Normal.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansel/lib/GalleryMode/Date.php b/ansel/lib/GalleryMode/Date.php index 297858e8f..ba7b2fe6d 100644 --- a/ansel/lib/GalleryMode/Date.php +++ b/ansel/lib/GalleryMode/Date.php @@ -451,7 +451,7 @@ class Ansel_GalleryMode_Date extends Ansel_GalleryMode_Base $GLOBALS['injector']->getInstance('Horde_Cache')->expire('Ansel_Gallery' . $this->_gallery->id); } - return true; + return count($ids); } /** diff --git a/ansel/lib/GalleryMode/Normal.php b/ansel/lib/GalleryMode/Normal.php index df530a914..f2fe95f31 100644 --- a/ansel/lib/GalleryMode/Normal.php +++ b/ansel/lib/GalleryMode/Normal.php @@ -177,7 +177,7 @@ class Ansel_GalleryMode_Normal extends Ansel_GalleryMode_Base $GLOBALS['injector']->getInstance('Horde_Cache')->expire('Ansel_Gallery' . $this->_gallery->id); } - return true; + return count($ids); } /** -- 2.11.0