/** * @see ThreadPostList::initDefaultSQL() */ protected function initDefaultSQL() { parent::initDefaultSQL(); $this->sqlConditions .= ' AND time < ' . $this->post->time; }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('postID' => $this->postID, 'thread' => $this->thread, 'form' => $this, 'posts' => $this->postList->posts, 'items' => $this->postList->countPosts(), 'postAttachments' => $this->attachments, 'oldThreadWarning' => $this->oldThreadWarning, 'disablePost' => $this->disablePost, 'markAsDone' => $this->markAsDone, 'insertQuotes' => !count($_POST) && empty($this->text) ? 1 : 0)); }