Explorar el Código

Update Pages\Message

Fix for update forum.
Visman hace 3 años
padre
commit
6a7c1ad1b4
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  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();
+    }
 }