fix next and previous key

This commit is contained in:
Diego Najar 2018-07-25 23:49:58 +02:00
parent 4e20c841eb
commit 710d7d3c67
1 changed files with 2 additions and 2 deletions

View File

@ -152,14 +152,14 @@ class PageX {
public function previousKey() public function previousKey()
{ {
global $dbPages; global $dbPages;
return $dbPages->previousPageKey($key); return $dbPages->previousPageKey($this->key());
} }
// Returns the next page key // Returns the next page key
public function nextKey() public function nextKey()
{ {
global $dbPages; global $dbPages;
return $dbPages->nextPageKey($key); return $dbPages->nextPageKey($this->key());
} }
// Returns the category name // Returns the category name