Merge pull request #686 from dkyme/fix-discoverPageSiblings

fix Wrong config keys in discoverPageSiblings #675
This commit is contained in:
Daniel Rudolf 2023-12-30 22:52:08 +01:00 committed by GitHub
commit ae9a8ebbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1940,7 +1940,7 @@ class Pico
*/
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 {