Have to pass perpage now through to the json() call so that API values are picked up.
authorChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 00:54:55 +0000 (20:54 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 00:54:55 +0000 (20:54 -0400)
ansel/lib/View/GalleryRenderer/GalleryLightbox.php

index 9624990..7e19e40 100644 (file)
@@ -51,10 +51,10 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
         /* Get JSON data for view */
         // 0 == normal, 1 == by date
         if ($this->mode == 0) {
-            $json = $this->view->json(array('full' => !empty($this->view->api)));
+            $json = $this->view->json(array('full' => !empty($this->view->api), 'perpage' => $this->perpage));
         } else {
             if (!empty($this->date['day']) && $this->numTiles) {
-                $json = $this->view->json(array('full' => !empty($this->view->api)));
+                $json = $this->view->json(array('full' => !empty($this->view->api), 'perpage' => $this->perpage));
             } else {
                 $json = '[]';
             }