/**
  * Post peer review comments.
  * @param $args array
  * @param $request PKPRequest
  */
 function postPeerReviewComment($args, $request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $reviewId = (int) $request->getUserVar('reviewId');
     $this->validate($articleId);
     $this->setupTemplate(true);
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false;
     if (SectionEditorAction::postPeerReviewComment($this->submission, $reviewId, $emailComment, $request)) {
         SectionEditorAction::viewPeerReviewComments($this->submission, $reviewId);
     }
 }
 /**
  * Post peer review comments.
  */
 function postPeerReviewComment()
 {
     SectionEditorHandler::validate();
     SectionEditorHandler::setupTemplate(true);
     $articleId = Request::getUserVar('articleId');
     $reviewId = Request::getUserVar('reviewId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false;
     list($journal, $submission) = SubmissionEditHandler::validate($articleId);
     if (SectionEditorAction::postPeerReviewComment($submission, $reviewId, $emailComment)) {
         SectionEditorAction::viewPeerReviewComments($submission, $reviewId);
     }
 }