From: Michael J. Rubinsky Date: Thu, 30 Dec 2010 19:38:14 +0000 (-0500) Subject: need to ensureHash() when creating a new stack too X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=21c5becc8c0cc0060326b8872984709993672c04;p=horde.git need to ensureHash() when creating a new stack too --- 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