MDL-26388 Recent repository plugin should return draft url

This commit is contained in:
Dongsheng Cai
2011-05-04 15:46:15 +08:00
parent f392caba15
commit 6e7b113da9
+1
View File
@@ -202,6 +202,7 @@ class repository_recent extends repository {
$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;
}