@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'sesskey' => sesskey(), |
62 | 62 | 'type' => $this->get_config('allowedtypes'), |
63 | 63 | 'timelimit' => $this->get_config('timelimit') |
64 | - ); |
|
64 | + ); |
|
65 | 65 | $this->add_button_after($params, 0, 'audiortc'); |
66 | 66 | } |
67 | 67 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | 'sesskey' => sesskey(), |
74 | 74 | 'type' => $this->get_config('allowedtypes'), |
75 | 75 | 'timelimit' => $this->get_config('timelimit') |
76 | - ); |
|
76 | + ); |
|
77 | 77 | $this->add_button_after($params, 0, 'videortc'); |
78 | 78 | } |
79 | 79 | } |
@@ -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); |
@@ -60,12 +60,12 @@ |
||
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. |
|
63 | + 'contextid' => $usercontext->id, // ID of context. |
|
64 | 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. |
|
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 | 69 | 'author' => fullname($USER), |
70 | 70 | 'licence' => $CFG->sitedefaultlicense |
71 | 71 | ); |
@@ -170,15 +170,15 @@ |
||
170 | 170 | * @param boolean $oldermoodle True if Moodle >= 3.2, else False. |
171 | 171 | * @return string |
172 | 172 | */ |
173 | - public function render_videortc_index($oldermoodle) { |
|
174 | - $output = html_writer::start_tag('div', array('class' => 'container-fluid')); |
|
175 | - $output .= tinymce_recordrtc_renderer::render_alerts($oldermoodle); |
|
176 | - $output .= tinymce_recordrtc_renderer::render_player($oldermoodle, 'video'); |
|
177 | - $output .= tinymce_recordrtc_renderer::render_buttons($oldermoodle); |
|
178 | - $output .= html_writer::end_tag('div'); |
|
173 | + public function render_videortc_index($oldermoodle) { |
|
174 | + $output = html_writer::start_tag('div', array('class' => 'container-fluid')); |
|
175 | + $output .= tinymce_recordrtc_renderer::render_alerts($oldermoodle); |
|
176 | + $output .= tinymce_recordrtc_renderer::render_player($oldermoodle, 'video'); |
|
177 | + $output .= tinymce_recordrtc_renderer::render_buttons($oldermoodle); |
|
178 | + $output .= html_writer::end_tag('div'); |
|
179 | 179 | |
180 | - return $output; |
|
181 | - } |
|
180 | + return $output; |
|
181 | + } |
|
182 | 182 | |
183 | 183 | /** |
184 | 184 | * Renders the HTML to include the necessary scripts. |