mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-28701 some more tempdirs updated
This commit is contained in:
parent
8f6e5a8d19
commit
b6b5023144
@ -68,7 +68,7 @@ if ($data = $mform->get_data()) {
|
||||
|
||||
$realfilename = $mform->get_new_filename('questionfile');
|
||||
//TODO: Leave all imported questions in Questionimport for now.
|
||||
$importfile = "{$CFG->dataroot}/temp/questionimport/{$realfilename}";
|
||||
$importfile = "{$CFG->tempdir}/questionimport/{$realfilename}";
|
||||
make_temp_directory('questionimport');
|
||||
if (!$result = $mform->save_file('questionfile', $importfile, true)) {
|
||||
throw new moodle_exception('uploadproblem');
|
||||
|
@ -83,7 +83,7 @@ if ($form = $import_form->get_data()) {
|
||||
// or one from the filesarea.
|
||||
$realfilename = $import_form->get_new_filename('newfile');
|
||||
|
||||
$importfile = "{$CFG->dataroot}/temp/questionimport/{$realfilename}";
|
||||
$importfile = "{$CFG->tempdir}/questionimport/{$realfilename}";
|
||||
make_temp_directory('questionimport');
|
||||
if (!$result = $import_form->save_file('newfile', $importfile, true)) {
|
||||
throw new moodle_exception('uploadproblem');
|
||||
|
Loading…
x
Reference in New Issue
Block a user