/** * Changes the topic of the selected post. */ public function changeTopic() { if (!$this->board->getModeratorPermission('canEditPost')) { return; } if ($this->post != null) { $this->post->setSubject($this->topic); if (!empty($this->topic) && $this->thread != null && $this->thread->firstPostID == $this->post->postID) { $this->thread->setTopic($this->topic, false); } } }