Skip to content

Commit

Permalink
MDL-36453 - mod_data: Presets now load in a Windows environment.
Browse files Browse the repository at this point in the history
Thanks to Michael de Raadt for this patch.
  • Loading branch information
abgreeve committed Nov 15, 2012
1 parent 8ccaa29 commit 590e3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
} else if ($action == 'finishimport') {
$overwritesettings = optional_param('overwritesettings', false, PARAM_BOOL);
if (!$fullname) {
$presetdir = $CFG->tempdir.'/forms/'.required_param('directory', PARAM_ALPHANUMEXT);
$presetdir = $CFG->tempdir.'/forms/'.required_param('directory', PARAM_FILE);
if (!file_exists($presetdir) || !is_dir($presetdir)) {
print_error('cannotimport');
}
Expand Down

0 comments on commit 590e3ef

Please sign in to comment.