Skip to content

Commit

Permalink
fix next and previous key
Browse files Browse the repository at this point in the history
  • Loading branch information
dignajar committed Jul 25, 2018
1 parent 4e20c84 commit 710d7d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bl-kernel/pagex.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ public function permalink($absolute=true)
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
Expand Down

0 comments on commit 710d7d3

Please sign in to comment.