From: Michael J. Rubinsky Date: Tue, 17 Aug 2010 15:23:43 +0000 (-0400) Subject: MFB: Return image count. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9aa4da6c3bbac2500b37a093b3ae24c679a6b010;p=horde.git MFB: Return image count. Bug: 9181 --- 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); } /**