From 4d0128294996235cccb63703a9aabfd09ae07359 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 13 Aug 2009 16:47:04 -0400 Subject: [PATCH] Be sure to clear all generated stacks when emptying a gallery --- ansel/lib/Storage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ansel/lib/Storage.php b/ansel/lib/Storage.php index bee705ab6..d5f3e2455 100644 --- a/ansel/lib/Storage.php +++ b/ansel/lib/Storage.php @@ -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 -- 2.11.0