MDL-32471 pluginfile.php accepts optional parameter 'preview'

This commit is contained in:
David Mudrak
2012-04-24 12:09:44 +02:00
parent ead4f180a0
commit b071498f1b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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);