Explorar o código

Update Rules page

Visman %!s(int64=3) %!d(string=hai) anos
pai
achega
7b77ef3c2f
Modificáronse 1 ficheiros con 15 adicións e 13 borrados
  1. 15 13
      app/Models/Pages/Rules.php

+ 15 - 13
app/Models/Pages/Rules.php

@@ -20,17 +20,18 @@ class Rules extends Page
      */
     public function view(): Page
     {
-        $this->fIndex     = self::FI_RULES;
-        $this->nameTpl    = 'rules';
-        $this->onlinePos  = 'rules';
-        $this->canonical  = $this->c->Router->link('Rules');
-        $this->crumbs     = $this->crumbs(
+        $this->fIndex       = self::FI_RULES;
+        $this->nameTpl      = 'rules';
+        $this->onlinePos    = 'rules';
+        $this->onlineDetail = null;
+        $this->canonical    = $this->c->Router->link('Rules');
+        $this->crumbs       = $this->crumbs(
             [
                 $this->c->Router->link('Rules'),
                 'Forum rules',
             ]
         );
-        $this->rules      = $this->c->config->o_rules_message;
+        $this->rules        = $this->c->config->o_rules_message;
 
         return $this;
     }
@@ -42,19 +43,20 @@ class Rules extends Page
     {
         $this->c->Lang->load('register');
 
-        $this->fIndex     = self::FI_REG;
-        $this->nameTpl    = 'rules';
-        $this->onlinePos  = 'rules';
-        $this->robots     = 'noindex';
-        $this->crumbs     = $this->crumbs(
+        $this->fIndex       = self::FI_REG;
+        $this->nameTpl      = 'rules';
+        $this->onlinePos    = 'rules';
+        $this->onlineDetail = null;
+        $this->robots       = 'noindex';
+        $this->crumbs       = $this->crumbs(
             'Forum rules',
             [
                 $this->c->Router->link('Register'),
                 'Register',
             ]
         );
-        $this->rules      = 1 === $this->c->config->b_rules ? $this->c->config->o_rules_message : __('If no rules');
-        $this->form       = $this->formAgree();
+        $this->rules        = 1 === $this->c->config->b_rules ? $this->c->config->o_rules_message : __('If no rules');
+        $this->form         = $this->formAgree();
 
         return $this;
     }