Skip to content

Commit

Permalink
Merge branch 'wip-MDL-36453-MOODLE_23_STABLE' of git://github.com/abg…
Browse files Browse the repository at this point in the history
…reeve/moodle into MOODLE_23_STABLE
  • Loading branch information
danpoltawski committed Nov 20, 2012
2 parents d338726 + f6cdef5 commit d7aec73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/preset.php
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 d7aec73

Please sign in to comment.