Browse Source

Update Rules page

Visman 3 năm trước cách đây
mục cha
commit
c1b2c206d2
2 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 0 2
      app/Models/Pages/Rules.php
  2. 1 1
      app/templates/rules.forkbb.php

+ 0 - 2
app/Models/Pages/Rules.php

@@ -24,7 +24,6 @@ class Rules extends Page
         $this->nameTpl    = 'rules';
         $this->onlinePos  = 'rules';
         $this->canonical  = $this->c->Router->link('Rules');
-        $this->title      = __('Forum rules');
         $this->crumbs     = $this->crumbs(
             [
                 $this->c->Router->link('Rules'),
@@ -47,7 +46,6 @@ class Rules extends Page
         $this->nameTpl    = 'rules';
         $this->onlinePos  = 'rules';
         $this->robots     = 'noindex';
-        $this->title      = __('Forum rules');
         $this->crumbs     = $this->crumbs(
             __('Forum rules'),
             [

+ 1 - 1
app/templates/rules.forkbb.php

@@ -4,7 +4,7 @@
 @yield ('crumbs')
     </div>
     <section class="f-main f-rules">
-      <h2>{!! $p->title !!}</h2>
+      <h2>{!! __('Forum rules') !!}</h2>
       <div id="id-rules">{!! $p->rules !!}</div>
 @if ($form = $p->form)
       <div class="f-fdiv f-lrdiv">