Skip to content

Commit

Permalink
EQ-2269 Add filename to module db record
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Jul 20, 2015
1 parent 05dd5d1 commit b7ea566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ function equella_dndupload_handle($uploadinfo) {
$eqresource->intro = $info->description;
$eqresource->introformat = FORMAT_HTML;
$eqresource->mimetype = $mimetype;
$eqresource->filename = $file->get_filename();
$item = array_pop($info->attachments);
$eqresource->attachmentuuid = $item->uuid;
$eqresource->url = $item->links->view;
Expand Down

0 comments on commit b7ea566

Please sign in to comment.