Permalink
Browse files

Merge branch 'wip-MDL-31396-MOODLE_22_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents ff60281 + 688c43a commit 38d0571f239c36fcd6d4cbb261f6aff4d3ccee0f Sam Hemelryk committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/lib.php
View
@@ -3144,7 +3144,7 @@ function data_presets_export($course, $cm, $data, $tostorage=false) {
$presetname = clean_filename($data->name) . '-preset-' . gmdate("Ymd_Hi");
$exportsubdir = "mod_data/presetexport/$presetname";
make_temp_directory($exportsubdir);
- $exportdir = "$CFG->dataroot/$exportsubdir";
+ $exportdir = "$CFG->tempdir/$exportsubdir";
// Assemble "preset.xml":
$presetxmldata = data_presets_generate_xml($course, $cm, $data);

0 comments on commit 38d0571

Please sign in to comment.