/**
  * Delete comment.
  * @param $args array
  * @param $request PKPRequest
  */
 function deleteComment($args, &$request)
 {
     $articleId = (int) array_shift($args);
     $commentId = (int) array_shift($args);
     $this->addCheck(new HandlerValidatorSubmissionComment($this, $commentId));
     $this->validate($request, $articleId);
     $comment =& $this->comment;
     $this->setupTemplate(true);
     CopyeditorAction::deleteComment($commentId);
     // Redirect back to initial comments page
     if ($comment->getCommentType() == COMMENT_TYPE_COPYEDIT) {
         $request->redirect(null, null, 'viewCopyeditComments', $articleId);
     } else {
         if ($comment->getCommentType() == COMMENT_TYPE_LAYOUT) {
             $request->redirect(null, null, 'viewLayoutComments', $articleId);
         } else {
             if ($comment->getCommentType() == COMMENT_TYPE_PROOFREAD) {
                 $request->redirect(null, null, 'viewProofreadComments', $articleId);
             }
         }
     }
 }
 /**
  * Delete comment.
  */
 function deleteComment($args)
 {
     CopyeditorHandler::validate();
     CopyeditorHandler::setupTemplate(true);
     $articleId = $args[0];
     $commentId = $args[1];
     list($journal, $submission) = SubmissionCopyeditHandler::validate($articleId);
     list($comment) = SubmissionCommentsHandler::validate($commentId);
     CopyeditorAction::deleteComment($commentId);
     // Redirect back to initial comments page
     if ($comment->getCommentType() == COMMENT_TYPE_COPYEDIT) {
         Request::redirect(null, null, 'viewCopyeditComments', $articleId);
     } else {
         if ($comment->getCommentType() == COMMENT_TYPE_LAYOUT) {
             Request::redirect(null, null, 'viewLayoutComments', $articleId);
         } else {
             if ($comment->getCommentType() == COMMENT_TYPE_PROOFREAD) {
                 Request::redirect(null, null, 'viewProofreadComments', $articleId);
             }
         }
     }
 }