Skip to content

Commit

Permalink
fix Wrong config keys in discoverPageSiblings #675
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyme committed Dec 30, 2023
1 parent 869ab1f commit 914dd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pico.php
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ protected function sortPages(): void
*/
protected function discoverPageSiblings(): void
{
if (($this->getConfig('order_by') === 'date') && ($this->getConfig('order') === 'desc')) {
if (($this->getConfig('pages_order_by') === 'date') && ($this->getConfig('pages_order') === 'desc')) {
$precedingPageKey = 'next_page';
$succeedingPageKey = 'previous_page';
} else {
Expand Down

0 comments on commit 914dd94

Please sign in to comment.