From 4fbd0b1cfd99f2734a60a40ba37f8ee3d8c40472 Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Mon, 21 Apr 2014 19:58:18 -0400 Subject: [PATCH] Use the abs() value, in case this is a generated key image. --- ansel/lib/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index 28982ef725f..4f182be8e7a 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -399,7 +399,7 @@ public function createView($view, Ansel_Style $style = null, $watermark = '') if (empty($style)) { $style = $GLOBALS['injector'] ->getInstance('Ansel_Storage') - ->getGallery($this->gallery) + ->getGallery(abs($this->gallery)) ->getStyle(); }