Browse Source

fix Wrong config keys in discoverPageSiblings #675

Cornelius 1 năm trước cách đây
mục cha
commit
914dd9453c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {