MDL-59008 mod_resource: add option to serve external files embed

This commit is contained in:
Simey Lameze 2017-06-02 11:17:32 +08:00
parent 5a651b43fb
commit 1fad6ff3f5
3 changed files with 17 additions and 7 deletions

View file

@ -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);