mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-59008 mod_resource: add option to serve external files embed
This commit is contained in:
parent
5a651b43fb
commit
1fad6ff3f5
3 changed files with 17 additions and 7 deletions
|
@ -36,5 +36,5 @@ $preview = optional_param('preview', null, PARAM_ALPHANUM);
|
|||
// Offline means download the file from the repository and serve it, even if it was an external link.
|
||||
// The repository may have to export the file to an offline format.
|
||||
$offline = optional_param('offline', 0, PARAM_BOOL);
|
||||
|
||||
file_pluginfile($relativepath, $forcedownload, $preview, $offline);
|
||||
$embed = optional_param('embed', 0, PARAM_BOOL);
|
||||
file_pluginfile($relativepath, $forcedownload, $preview, $offline, $embed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue