Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-26388 Recent repository plugin should return draft url

  • Loading branch information...
commit 99b15d4438f6fb069709c24f4b6189d5987969ad 1 parent f4c7c73
@dcai dcai authored samhemelryk committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  repository/recent/lib.php
View
1  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.