浏览代码

fix Wrong config keys in discoverPageSiblings #675

Cornelius 1 年之前
父节点
当前提交
914dd9453c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -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 {