/**
  * Post proofread comment.
  * @param $args array
  * @param $request object
  */
 function postProofreadComment($args, &$request)
 {
     $articleId = (int) $request->getUserVar('articleId');
     $this->validate($request, $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 (ProofreaderAction::postProofreadComment($this->submission, $emailComment, $request)) {
         ProofreaderAction::viewProofreadComments($this->submission);
     }
 }
 /**
  * Post proofread comment.
  */
 function postProofreadComment()
 {
     ProofreaderHandler::validate();
     ProofreaderHandler::setupTemplate(true);
     $articleId = Request::getUserVar('articleId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false;
     list($journal, $submission) = SubmissionProofreadHandler::validate($articleId);
     if (ProofreaderAction::postProofreadComment($submission, $emailComment)) {
         ProofreaderAction::viewProofreadComments($submission);
     }
 }
 /**
  * Post proofread comment.
  */
 function postProofreadComment()
 {
     $this->validate();
     $this->setupTemplate(true);
     $articleId = Request::getUserVar('articleId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false;
     $submissionProofreadHandler = new SubmissionProofreadHandler();
     $submissionProofreadHandler->validate($articleId);
     $submission =& $submissionProofreadHandler->submission;
     if (ProofreaderAction::postProofreadComment($submission, $emailComment)) {
         ProofreaderAction::viewProofreadComments($submission);
     }
 }