ソースを参照

Update Profile page

Visman 3 年 前
コミット
a9dc835f18
2 ファイル変更1 行追加2 行削除
  1. 0 1
      app/Models/Pages/Profile.php
  2. 1 1
      app/templates/profile.forkbb.php

+ 0 - 1
app/Models/Pages/Profile.php

@@ -43,7 +43,6 @@ abstract class Profile extends Page
         $this->fIndex    = $this->rules->my ? self::FI_PROFL : self::FI_USERS;
         $this->nameTpl   = 'profile';
         $this->onlinePos = 'profile-' . $this->curUser->id; // ????
-        $this->title     = __(['%s\'s profile', $this->curUser->username]);
 
         return true;
     }

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

@@ -16,7 +16,7 @@
     </div>
 @if ($form = $p->form)
     <section class="f-main f-profile">
-      <h2>{!! $p->title !!}</h2>
+      <h2>{!! __(['%s\'s profile', $p->curUser->username]) !!}</h2>
       <div class="f-fdiv">
     @include ('layouts/form')
       </div>