Be sure to clear all generated stacks when emptying a gallery
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:47:04 +0000 (16:47 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:47:04 +0000 (16:47 -0400)
ansel/lib/Storage.php

index bee705a..d5f3e24 100644 (file)
@@ -395,6 +395,7 @@ class Ansel_Storage
      */
     public function emptyGallery($gallery)
     {
+        $gallery->clearStacks();
         $images = $gallery->listImages();
         foreach ($images as $image) {
             // Pretend we are a stack so we don't update the images count