From 710d7d3c676f8ca409a0a960c07702900b8a3469 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 25 Jul 2018 23:49:58 +0200 Subject: [PATCH] fix next and previous key --- bl-kernel/pagex.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index 1a5265ee..5c8e622b 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -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