소스 검색

Update Rules page

Visman 3 년 전
부모
커밋
c1b2c206d2
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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">