Fixing bug when downloading a work -refs #7027

1.9.x
ycastillo 11 years ago
parent e0b209615a
commit f3a7eb31f3
  1. 14
      main/work/work.lib.php

@ -4114,11 +4114,15 @@ function getFile($id, $course_info, $download = true)
{ {
$file = getFileContents($id, $course_info); $file = getFileContents($id, $course_info);
if (!empty($file) && is_array($file)) { if (!empty($file) && is_array($file)) {
DocumentManager::file_send_for_download( return DocumentManager::file_send_for_download($file['path'], $download, $file['title']);
$file['path'], }
$download,
$file['title'] return false;
);
}
No commit comments for this range
} }
return false; return false;
} }

Loading…
Cancel
Save