fix next instead of prev

This commit is contained in:
osaajani 2020-06-16 17:04:48 +02:00
parent 903a8d3770
commit 9d1bbc4356
1 changed files with 1 additions and 1 deletions

View File

@ -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);