/**
  * Delete an author version file.
  * @param $args array ($paperId, $fileId)
  */
 function deletePaperFile($args)
 {
     $paperId = isset($args[0]) ? (int) $args[0] : 0;
     $fileId = isset($args[1]) ? (int) $args[1] : 0;
     $revisionId = isset($args[2]) ? (int) $args[2] : 0;
     $this->validate($paperId, true);
     $authorSubmission =& $this->submission;
     AuthorAction::deletePaperFile($authorSubmission, $fileId, $revisionId);
     Request::redirect(null, null, null, 'submissionReview', $paperId);
 }
 /**
  * Delete an author version file.
  * @param $args array ($paperId, $fileId)
  */
 function deletePaperFile($args, $request)
 {
     $paperId = (int) array_shift($args);
     $fileId = (int) array_shift($args);
     $revisionId = (int) array_shift($args);
     $this->validate($request, $paperId, true);
     $authorSubmission =& $this->submission;
     AuthorAction::deletePaperFile($authorSubmission, $fileId, $revisionId);
     $request->redirect(null, null, null, 'submissionReview', $paperId);
 }