コード例 #1
0
ファイル: display.php プロジェクト: Ruud68/Kunena-Forum
 /**
  * After render update topic data for the user.
  *
  * @return void
  */
 protected function after()
 {
     parent::after();
     $this->topic->hit();
     $this->topic->markRead();
     // Check if subscriptions have been sent and reset the value.
     if ($this->topic->isAuthorised('subscribe') && $this->userTopic->subscribed == 2) {
         $this->userTopic->subscribed = 1;
         $this->userTopic->save();
     }
 }