/* 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 = '[]';
}