Merge branch 'MDL-54113-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Dan Poltawski 2016-09-05 07:53:26 +01:00
commit e5c5f5d3ff

View File

@ -935,7 +935,9 @@ class assign_files implements renderable {
$file->get_filename();
$url = file_encode_url("$CFG->wwwroot/pluginfile.php", $path, true);
$filename = $file->get_filename();
$file->fileurl = html_writer::link($url, $filename);
$file->fileurl = html_writer::link($url, $filename, [
'target' => '_blank',
]);
}
}
}