adding missing $dir
authorPetr Skoda <skodak@moodle.org>
Fri, 17 Sep 2010 18:36:14 +0000 (18:36 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 17 Sep 2010 18:36:14 +0000 (18:36 +0000)
files/externallib.php

index 40d7766..eba388b 100755 (executable)
@@ -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';