fix next and previous key

This commit is contained in:
Diego Najar 2018-07-25 23:49:58 +02:00
parent 4e20c841eb
commit 710d7d3c67

View File

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