Skip to content

Commit

Permalink
Merge pull request #686 from dkyme/fix-discoverPageSiblings
Browse files Browse the repository at this point in the history
fix Wrong config keys in discoverPageSiblings #675
  • Loading branch information
PhrozenByte authored Dec 30, 2023
2 parents 869ab1f + 914dd94 commit ae9a8eb
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 ae9a8eb

Please sign in to comment.