/**
  * Download a file.
  * @param $args array ($articleId, $fileId, [$revision])
  */
 function downloadFile($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $fileId = isset($args[1]) ? $args[1] : 0;
     $revision = isset($args[2]) ? $args[2] : null;
     list($journal, $submission) = SubmissionCopyeditHandler::validate($articleId);
     if (!CopyeditorAction::downloadCopyeditorFile($submission, $fileId, $revision)) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Download a file.
  * @param $args array ($articleId, $fileId, [$revision])
  */
 function downloadFile($args, &$request)
 {
     $articleId = (int) array_shift($args);
     $fileId = (int) array_shift($args);
     $revision = array_shift($args);
     // Can be null
     $this->validate($request, $articleId);
     if (!CopyeditorAction::downloadCopyeditorFile($this->submission, $fileId, $revision)) {
         $request->redirect(null, null, 'submission', $articleId);
     }
 }
 /**
  * Download a file.
  * @param $args array ($articleId, $fileId, [$revision])
  */
 function downloadFile($args)
 {
     $articleId = isset($args[0]) ? $args[0] : 0;
     $fileId = isset($args[1]) ? $args[1] : 0;
     $revision = isset($args[2]) ? $args[2] : null;
     $this->validate($articleId);
     $submission =& $this->submission;
     if (!CopyeditorAction::downloadCopyeditorFile($submission, $fileId, $revision)) {
         Request::redirect(null, null, 'submission', $articleId);
     }
 }