Browse Source

Update Pages\Message

Fix for update forum.
Visman 3 years ago
parent
commit
6a7c1ad1b4
1 changed files with 12 additions and 0 deletions
  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;
     }
+
+    /**
+     * Задает массивы главной навигации форума
+     */
+    protected function boardNavigation(): void
+    {
+        if ($this->c->config->i_fork_revision < $this->c->FORK_REVISION) {
+            return;
+        }
+
+        parent::boardNavigation();
+    }
 }