MDL-32471 pluginfile.php accepts optional parameter 'preview'
This commit is contained in:
+2
-1
@@ -33,5 +33,6 @@ require_once('lib/filelib.php');
|
||||
|
||||
$relativepath = get_file_argument();
|
||||
$forcedownload = optional_param('forcedownload', 0, PARAM_BOOL);
|
||||
$preview = optional_param('preview', null, PARAM_ALPHANUM);
|
||||
|
||||
file_pluginfile($relativepath, $forcedownload);
|
||||
file_pluginfile($relativepath, $forcedownload, $preview);
|
||||
|
||||
Reference in New Issue
Block a user