Skip to content

Commit

Permalink
MDL-26388 Recent repository plugin should return draft url
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai authored and Sam Hemelryk committed May 4, 2011
1 parent f4c7c73 commit 99b15d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repository/recent/lib.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 99b15d4

Please sign in to comment.