Need to assign the link() call to this variable, otherwise URLs are incorrect.
authorChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 01:40:29 +0000 (21:40 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 01:40:29 +0000 (21:40 -0400)
ansel/lib/Tile/DateGallery.php

index 5467508..e4494f8 100644 (file)
@@ -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 */