@@ -73,5 +73,5 @@ |
||
| 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); |
@@ -62,12 +62,12 @@ |
||
| 62 | 62 | // Prepare file record object. |
| 63 | 63 | $usercontext = context_user::instance($USER->id); |
| 64 | 64 | $fileinfo = array( |
| 65 | - 'contextid' => $usercontext->id, // ID of context. |
|
| 65 | + 'contextid' => $usercontext->id, // ID of context. |
|
| 66 | 66 | 'component' => 'tinymce_recordrtc', // Usually = table name. |
| 67 | - 'filearea' => 'annotation', // Usually = table name. |
|
| 68 | - 'itemid' => time(), // Usually = ID of row in table. |
|
| 69 | - 'filepath' => '/', // Any path beginning and ending in "/". |
|
| 70 | - 'filename' => $filename, // Any filename. |
|
| 67 | + 'filearea' => 'annotation', // Usually = table name. |
|
| 68 | + 'itemid' => time(), // Usually = ID of row in table. |
|
| 69 | + 'filepath' => '/', // Any path beginning and ending in "/". |
|
| 70 | + 'filename' => $filename, // Any filename. |
|
| 71 | 71 | 'author' => fullname($USER), |
| 72 | 72 | 'license' => $CFG->sitedefaultlicense |
| 73 | 73 | ); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | 'serverurl' => $this->get_config('serverurl'), |
| 71 | 71 | 'apikey' => $this->get_config('apikey'), |
| 72 | 72 | 'apisecret' => $this->get_config('apisecret') |
| 73 | - ); |
|
| 73 | + ); |
|
| 74 | 74 | $this->add_button_after($params, 0, 'audiortc'); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | 'serverurl' => $this->get_config('serverurl'), |
| 86 | 86 | 'apikey' => $this->get_config('apikey'), |
| 87 | 87 | 'apisecret' => $this->get_config('apisecret') |
| 88 | - ); |
|
| 88 | + ); |
|
| 89 | 89 | $this->add_button_after($params, 0, 'videortc'); |
| 90 | 90 | } |
| 91 | 91 | } |