From: Chuck Hagenbuch Date: Sat, 21 Aug 2010 01:40:29 +0000 (-0400) Subject: Need to assign the link() call to this variable, otherwise URLs are incorrect. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=60030d0d4dc118f234e41c3a686177b47dbaae50;p=horde.git Need to assign the link() call to this variable, otherwise URLs are incorrect. --- 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 */