@@ -60,18 +60,18 @@ |
||
60 | 60 | // Prepare file record object. |
61 | 61 | $usercontext = context_user::instance($USER->id); |
62 | 62 | $fileinfo = array( |
63 | - 'contextid' => $usercontext->id, // ID of context. |
|
64 | - 'component' => 'tinymce_recordrtc', // Usually = table name. |
|
65 | - 'filearea' => 'annotation', // Usually = table name. |
|
66 | - 'itemid' => time(), // Usually = ID of row in table. |
|
67 | - 'filepath' => '/', // Any path beginning and ending in "/". |
|
68 | - 'filename' => $filename, // Any filename. |
|
69 | - 'author' => fullname($USER), |
|
70 | - 'licence' => $CFG->sitedefaultlicense |
|
71 | - ); |
|
63 | + 'contextid' => $usercontext->id, // ID of context. |
|
64 | + 'component' => 'tinymce_recordrtc', // Usually = table name. |
|
65 | + 'filearea' => 'annotation', // Usually = table name. |
|
66 | + 'itemid' => time(), // Usually = ID of row in table. |
|
67 | + 'filepath' => '/', // Any path beginning and ending in "/". |
|
68 | + 'filename' => $filename, // Any filename. |
|
69 | + 'author' => fullname($USER), |
|
70 | + 'licence' => $CFG->sitedefaultlicense |
|
71 | + ); |
|
72 | 72 | $filesaved = $fs->create_file_from_pathname($fileinfo, $filetmp); |
73 | 73 | |
74 | 74 | // OK response. |
75 | 75 | $filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'. |
76 | - $filesaved->get_itemid().'/'.$filesaved->get_filename(); |
|
76 | + $filesaved->get_itemid().'/'.$filesaved->get_filename(); |
|
77 | 77 | echo($filetarget); |