Permalink
Browse files

MDL-26388 Recent repository plugin should return draft url

  • Loading branch information...
1 parent f4c7c73 commit 99b15d4438f6fb069709c24f4b6189d5987969ad @dcai dcai committed with Sam Hemelryk May 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 repository/recent/lib.php
@@ -202,6 +202,7 @@ public function copy_to_area($encoded, $draftitemid, $new_filepath, $new_filenam
$info['title'] = $new_filename;
$info['itemid'] = $draftitemid;
$info['filesize'] = $stored_file->get_filesize();
+ $info['url'] = moodle_url::make_draftfile_url($draftitemid, $new_filepath, $new_filename)->out();;
$info['contextid'] = $user_context->id;
return $info;
}

0 comments on commit 99b15d4

Please sign in to comment.