From cdc5d38c2d5f09d7d8d73c3553ae7c0353bb9617 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 20 Aug 2010 20:54:55 -0400 Subject: [PATCH] Have to pass perpage now through to the json() call so that API values are picked up. --- ansel/lib/View/GalleryRenderer/GalleryLightbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansel/lib/View/GalleryRenderer/GalleryLightbox.php b/ansel/lib/View/GalleryRenderer/GalleryLightbox.php index 962499059..7e19e40f1 100644 --- a/ansel/lib/View/GalleryRenderer/GalleryLightbox.php +++ b/ansel/lib/View/GalleryRenderer/GalleryLightbox.php @@ -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 = '[]'; } -- 2.11.0