| @@ -76,5 +76,5 @@ | ||
| 76 | 76 | |
| 77 | 77 | // OK response. | 
| 78 | 78 | $filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'. | 
| 79 | - $filesaved->get_itemid().'/'.$filesaved->get_filename(); | |
| 79 | + $filesaved->get_itemid().'/'.$filesaved->get_filename(); | |
| 80 | 80 | echo($filetarget); | 
| @@ -63,12 +63,12 @@ | ||
| 63 | 63 | // Prepare file record object. | 
| 64 | 64 | $usercontext = context_user::instance($USER->id); | 
| 65 | 65 | $fileinfo = array( | 
| 66 | - 'contextid' => $usercontext->id, // ID of context. | |
| 66 | + 'contextid' => $usercontext->id, // ID of context. | |
| 67 | 67 | 'component' => 'tinymce_recordrtc', // Usually = table name. | 
| 68 | - 'filearea' => 'annotation', // Usually = table name. | |
| 69 | - 'itemid' => time(), // Usually = ID of row in table. | |
| 70 | - 'filepath' => '/', // Any path beginning and ending in "/". | |
| 71 | - 'filename' => $filename, // Any filename. | |
| 68 | + 'filearea' => 'annotation', // Usually = table name. | |
| 69 | + 'itemid' => time(), // Usually = ID of row in table. | |
| 70 | + 'filepath' => '/', // Any path beginning and ending in "/". | |
| 71 | + 'filename' => $filename, // Any filename. | |
| 72 | 72 | 'author' => fullname($USER), | 
| 73 | 73 | 'licence' => $CFG->sitedefaultlicense | 
| 74 | 74 | ); | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | 'sesskey' => sesskey(), | 
| 68 | 68 |                  'type' => $this->get_config('allowedtypes'), | 
| 69 | 69 |                  'timelimit' => $this->get_config('timelimit') | 
| 70 | - ); | |
| 70 | + ); | |
| 71 | 71 | $this->add_button_after($params, 0, 'audiortc'); | 
| 72 | 72 | } | 
| 73 | 73 | |
| @@ -79,7 +79,7 @@ discard block | ||
| 79 | 79 | 'sesskey' => sesskey(), | 
| 80 | 80 |                  'type' => $this->get_config('allowedtypes'), | 
| 81 | 81 |                  'timelimit' => $this->get_config('timelimit') | 
| 82 | - ); | |
| 82 | + ); | |
| 83 | 83 | $this->add_button_after($params, 0, 'videortc'); | 
| 84 | 84 | } | 
| 85 | 85 | } |