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 c44a5d5 commit 5d6eafc
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['title'] = $new_filename;
$info['itemid'] = $draftitemid; $info['itemid'] = $draftitemid;
$info['filesize'] = $stored_file->get_filesize(); $info['filesize'] = $stored_file->get_filesize();
$info['url'] = moodle_url::make_draftfile_url($draftitemid, $new_filepath, $new_filename)->out();;
$info['contextid'] = $user_context->id; $info['contextid'] = $user_context->id;
return $info; return $info;
} }
Expand Down

0 comments on commit 5d6eafc

Please sign in to comment.