mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-54113 assign: Open files in new window
Open files in a new window when viewing to ensure that the form change checker does not warn about the page reloading.
This commit is contained in:
parent
3ca3cc77a2
commit
f42288ea62
1 changed files with 3 additions and 1 deletions
|
@ -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',
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue