adding missing $dir

This commit is contained in:
Petr Skoda
2010-09-17 18:36:14 +00:00
parent cb9f4e2773
commit 89877fdf5f
+1 -1
View File
@@ -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';