From: Chuck Hagenbuch Date: Sat, 21 Aug 2010 00:54:55 +0000 (-0400) Subject: Have to pass perpage now through to the json() call so that API values are picked up. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cdc5d38c2d5f09d7d8d73c3553ae7c0353bb9617;p=horde.git Have to pass perpage now through to the json() call so that API values are picked up. --- 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 = '[]'; }