Permalink
Browse files

wip-MDL-31396 - data - Exporting a preset as a zip code changed to re…

…move errors.
  • Loading branch information...
abgreeve committed Feb 2, 2012
1 parent 4d2f89f commit 688c43ac3e1708cd335cc08450a6d21e6e4af730
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 688c43a

Please sign in to comment.