From 60030d0d4dc118f234e41c3a686177b47dbaae50 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 20 Aug 2010 21:40:29 -0400 Subject: [PATCH] Need to assign the link() call to this variable, otherwise URLs are incorrect. --- ansel/lib/Tile/DateGallery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansel/lib/Tile/DateGallery.php b/ansel/lib/Tile/DateGallery.php index 5467508e3..e4494f856 100644 --- a/ansel/lib/Tile/DateGallery.php +++ b/ansel/lib/Tile/DateGallery.php @@ -98,9 +98,9 @@ class Ansel_Tile_DateGallery $view_link = Ansel::getUrlFor('view', $params)->link(); } else { $view_link = new Horde_Url(str_replace(array('%g', '%s'), - array($dgallery->id, $dgallery->get('slug')), - urldecode($params['gallery_view_url']))); - $view_link->add($next_date)->link(); + array($dgallery->id, $dgallery->get('slug')), + urldecode($params['gallery_view_url']))); + $view_link = $view_link->add($next_date)->link(); } /* Variables used in the template file */ -- 2.11.0