Pārlūkot izejas kodu

Update Report page

Visman 3 gadi atpakaļ
vecāks
revīzija
99b25947c9
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      app/Models/Pages/Report.php
  2. 1 1
      app/templates/report.forkbb.php

+ 1 - 1
app/Models/Pages/Report.php

@@ -110,7 +110,7 @@ class Report extends Page
 //        $this->canonical = $this->c->Router->link('NewTopic', ['id' => $forum->id]);
         $this->robots    = 'noindex';
         $this->crumbs    = $this->crumbs(__('Report post'), $topic);
-        $this->formTitle = __('Report post');
+        $this->formTitle = 'Report post';
         $this->form      = $this->formReport($args, $data);
 
         return $this;

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

@@ -5,7 +5,7 @@
     </div>
 @if ($form = $p->form)
     <section class="f-post-form f-report-form">
-      <h2>{!! $p->formTitle !!}</h2>
+      <h2>{!! __($p->formTitle) !!}</h2>
       <div class="f-fdiv">
     @include ('layouts/form')
       </div>