fix Wrong config keys in discoverPageSiblings #675

This commit is contained in:
Cornelius 2023-12-30 12:20:20 +01:00
parent 869ab1f2e0
commit 914dd9453c

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 {