From 9d1bbc4356a29a77201ed7c202149505c1742646 Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Tue, 16 Jun 2020 17:04:48 +0200 Subject: [PATCH] fix next instead of prev --- controllers/publics/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/publics/Api.php b/controllers/publics/Api.php index 969a092..2c864f1 100644 --- a/controllers/publics/Api.php +++ b/controllers/publics/Api.php @@ -161,7 +161,7 @@ namespace controllers\publics; if ($page > 0) { - $return['next'] = \descartes\Router::url('Api', __FUNCTION__, ['entry_type' => $entry_type, 'page' => $page - 1], ['api_key' => $this->user['api_key']]); + $return['prev'] = \descartes\Router::url('Api', __FUNCTION__, ['entry_type' => $entry_type, 'page' => $page - 1], ['api_key' => $this->user['api_key']]); } $this->auto_http_code(true);