/** * @see Form::save() */ public function save() { CaptchaForm::save(); // save solution $this->entry->update($this->comment); $this->saved(); // get solution/contest require_once WCF_DIR . 'lib/data/contest/solution/ContestSolution.class.php'; $solution = new ContestSolution($this->entry->solutionID); // forward HeaderUtil::redirect('index.php?page=ContestSolutionEntry' . '&contestID=' . $solution->contestID . '&solutionID=' . $solution->solutionID . SID_ARG_2ND_NOT_ENCODED . '#comment' . $this->entry->commentID); exit; }
/** * @see Form::save() */ public function save() { parent::save(); // save comment $comment = ContestSolutionCommentEditor::create($this->solutionObj->solutionID, $this->comment, WCF::getUser()->userID, $this->username); $this->saved(); // forward HeaderUtil::redirect('index.php?page=ContestSolutionEntry' . '&contestID=' . $this->solutionObj->contestID . '&solutionID=' . $this->solutionObj->solutionID . SID_ARG_2ND_NOT_ENCODED . '#comment' . $comment->commentID); exit; }