From 21c5becc8c0cc0060326b8872984709993672c04 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 30 Dec 2010 14:38:14 -0500 Subject: [PATCH] need to ensureHash() when creating a new stack too --- ansel/lib/Gallery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansel/lib/Gallery.php b/ansel/lib/Gallery.php index 44583c624..7e812db8a 100644 --- a/ansel/lib/Gallery.php +++ b/ansel/lib/Gallery.php @@ -638,6 +638,10 @@ class Ansel_Gallery extends Horde_Share_Object_Sql_Hierarchical implements Seria $prettyData = serialize(array_merge($thumbs, array($styleHash => $newImg->id))); $this->set('default_prettythumb', $prettyData, true); + // Make sure the hash is saved since it might be different then + // the gallery's + $GLOBALS['injector']->getInstance('Ansel_Storage')->ensureHash($styleHash); + return $newImg->id; } catch (Horde_Exception $e) { // Might not support the requested style...try ansel_default -- 2.11.0