/**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         $this->closeThread = $this->thread->isClosed;
         $this->text = $this->post->message;
         $this->subject = $this->post->subject;
         $this->subscription = $this->thread->subscribed;
         $this->prefix = $this->thread->prefix;
         if ($this->thread->isSticky) {
             $this->isImportant = 1;
         }
         if ($this->thread->isAnnouncement) {
             $this->isImportant = 2;
         }
         $this->boardIDs = $this->thread->getAssignedBoards();
         $this->languageID = $this->thread->languageID;
         $this->editReason = $this->post->editReason;
         $this->enableSmilies = $this->post->enableSmilies;
         $this->enableHtml = $this->post->enableHtml;
         $this->enableBBCodes = $this->post->enableBBCodes;
         $this->showSignature = $this->post->showSignature;
         // tags
         if (THREAD_ENABLE_TAGS && $this->thread->firstPostID == $this->postID) {
             $this->tags = TaggingUtil::buildString($this->thread->getTags(array($this->languageID)));
         }
     }
     // get post list
     if ($this->thread->firstPostID != $this->postID) {
         try {
             require_once WBB_DIR . 'lib/data/post/PostEditPostList.class.php';
             $this->postList = new PostEditPostList($this->post, $this->thread, $this->board);
             $this->attachments = $this->postList->attachments;
             if (count($this->attachments) > 0) {
                 require_once WCF_DIR . 'lib/data/attachment/MessageAttachmentList.class.php';
                 MessageAttachmentList::removeEmbeddedAttachments($this->attachments);
             }
         } catch (SystemException $e) {
         }
     }
 }