/**
  * Edit comment.
  */
 function editComment($args)
 {
     SectionEditorHandler::validate();
     SectionEditorHandler::setupTemplate(true);
     $articleId = $args[0];
     $commentId = $args[1];
     list($journal, $submission) = SubmissionEditHandler::validate($articleId);
     list($comment) = SubmissionCommentsHandler::validate($commentId);
     if ($comment->getCommentType() == COMMENT_TYPE_EDITOR_DECISION) {
         // Cannot edit an editor decision comment.
         Request::redirect(null, Request::getRequestedPage());
     }
     SectionEditorAction::editComment($submission, $comment);
 }
 /**
  * Edit comment.
  */
 function editComment($args)
 {
     $articleId = $args[0];
     $commentId = $args[1];
     $this->addCheck(new HandlerValidatorSubmissionComment($this, $commentId));
     $this->validate();
     $comment =& $this->comment;
     $this->setupTemplate(true);
     $submissionEditHandler = new SubmissionEditHandler();
     $submissionEditHandler->validate($articleId);
     $submission =& $submissionEditHandler->submission;
     if ($comment->getCommentType() == COMMENT_TYPE_EDITOR_DECISION) {
         // Cannot edit an editor decision comment.
         Request::redirect(null, Request::getRequestedPage());
     }
     SectionEditorAction::editComment($submission, $comment);
 }
 /**
  * Edit comment.
  * @param $args array
  * @param $request PKPRequest
  */
 function editComment($args, $request)
 {
     $articleId = (int) array_shift($args);
     $commentId = (int) array_shift($args);
     $this->addCheck(new HandlerValidatorSubmissionComment($this, $commentId));
     $this->validate($articleId);
     $comment =& $this->comment;
     $this->setupTemplate(true);
     if ($comment->getCommentType() == COMMENT_TYPE_EDITOR_DECISION) {
         // Cannot edit an editor decision comment.
         $request->redirect(null, $request->getRequestedPage());
     }
     SectionEditorAction::editComment($this->submission, $comment);
 }