Permalink
Browse files

MDL-26388 Recent repository plugin should return draft url

  • Loading branch information...
dcai committed May 4, 2011
1 parent 9fb4a63 commit 090e19328e7f60245030140a129c3e29175231dd
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 090e193

Please sign in to comment.