mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
adding missing $dir
This commit is contained in:
parent
cb9f4e2773
commit
89877fdf5f
@ -207,7 +207,7 @@ class moodle_file_external extends external_api {
|
||||
throw new moodle_exception('nofile');
|
||||
}
|
||||
// saving file
|
||||
make_upload_directory('temp/wsupload');
|
||||
$dir = make_upload_directory('temp/wsupload');
|
||||
|
||||
if (empty($fileinfo['filename'])) {
|
||||
$filename = uniqid('wsupload').'_'.time().'.tmp';
|
||||
|
Loading…
x
Reference in New Issue
Block a user