MDL-14589, fixed filepath

This commit is contained in:
Dongsheng Cai 2010-07-12 09:01:12 +00:00
parent 4df53d1a23
commit ee9a49628d

View File

@ -75,7 +75,7 @@ class file_picker implements renderable {
$file = $fs->get_file($usercontext->id, 'user', 'draft', $options->itemid, $options->filepath, $options->filename);
}
if (!empty($file)) {
$options->currentfile = html_writer::link(moodle_url::make_draftfile_url($file->get_itemid(), $file->get_filename(), $file->get_filename()), $file->get_filename());
$options->currentfile = html_writer::link(moodle_url::make_draftfile_url($file->get_itemid(), $file->get_filepath(), $file->get_filename()), $file->get_filename());
}
}