]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14317, fix parameter type, see tracker, thanks Stephen, merged from MOODLE_19_STABLE
authordongsheng <dongsheng>
Wed, 16 Apr 2008 03:24:28 +0000 (03:24 +0000)
committerdongsheng <dongsheng>
Wed, 16 Apr 2008 03:24:28 +0000 (03:24 +0000)
mod/data/preset.php

index 3d66a5a560c6d380e13b229376740be12378e868..bb25ba7bb9df3eae57981b66f55588f677e9091e 100644 (file)
@@ -14,7 +14,7 @@ $id       = optional_param('id', 0, PARAM_INT);    // course module id
 $d        = optional_param('d', 0, PARAM_INT);     // database activity id
 $action   = optional_param('action', 'base', PARAM_ALPHANUM); // current action
 $fullname = optional_param('fullname', '', PARAM_PATH); // directory the preset is in
-$file     = optional_param('file', '', PARAM_FILE); // uploaded file
+$file     = optional_param('file', '', PARAM_PATH); // uploaded file
 
 // find out preset owner userid and shortname
 $parts = explode('/', $fullname);