瀏覽代碼

Update Pages\Message

Fix for update forum.
Visman 3 年之前
父節點
當前提交
6a7c1ad1b4
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      app/Models/Pages/Message.php

+ 12 - 0
app/Models/Pages/Message.php

@@ -54,4 +54,16 @@ class Message extends Page
 
 
         return $this;
         return $this;
     }
     }
+
+    /**
+     * Задает массивы главной навигации форума
+     */
+    protected function boardNavigation(): void
+    {
+        if ($this->c->config->i_fork_revision < $this->c->FORK_REVISION) {
+            return;
+        }
+
+        parent::boardNavigation();
+    }
 }
 }