示例#1
0
 /**
  * Edit comment.
  * @param $commentId int
  */
 function editComment($paper, $comment, $reviewId)
 {
     if (!HookRegistry::call('ReviewerAction::editComment', array(&$paper, &$comment, &$reviewId))) {
         import("submission.form.comment.EditCommentForm");
         $commentForm = new EditCommentForm($paper, $comment);
         $commentForm->initData();
         $commentForm->setData('reviewId', $reviewId);
         $commentForm->display(array('reviewId' => $reviewId));
     }
 }