Permalink
Browse files

MDL-26388 Recent repository plugin should return draft url

  • Loading branch information...
1 parent f392cab commit 6e7b113da9f11738344fa445e2b8fd4a0168890c @dcai dcai committed 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 6e7b113

Please sign in to comment.