@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | 'sesskey' => sesskey(), |
| 62 | 62 | 'type' => 'audiortc', |
| 63 | 63 | 'timelimit' => $this->get_config('timelimit'), '120' |
| 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' => 'videortc', |
| 75 | 75 | 'timelimit' => $this->get_config('timelimit'), '120' |
| 76 | - ); |
|
| 76 | + ); |
|
| 77 | 77 | $this->add_button_after($params, 0, 'videortc'); |
| 78 | 78 | } |
| 79 | 79 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | class tinymce_recordrtc extends editor_tinymce_plugin { |
| 33 | 33 | /** @var array list of buttons defined by this plugin */ |
| 34 | - protected $buttons = array('recordrtc','audiortc','videortc'); |
|
| 34 | + protected $buttons = array('recordrtc', 'audiortc', 'videortc'); |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Adjusts TinyMCE init parameters for tinymce_recordrtc |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | // Add audio button at the end of the first row. |
| 56 | 56 | $allowedtypes = $this->get_config('allowedtypes', 'both'); |
| 57 | - if ( $allowedtypes == 'both' || $allowedtypes == 'audio') { |
|
| 57 | + if ($allowedtypes == 'both' || $allowedtypes == 'audio') { |
|
| 58 | 58 | // Add parameters for audiortc. |
| 59 | 59 | $params['audiortc'] = array( |
| 60 | 60 | 'contextid' => $options['context']->id, |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | // Add video button at the end of the first row. |
| 69 | - if ( $allowedtypes == 'both' || $allowedtypes == 'video') { |
|
| 69 | + if ($allowedtypes == 'both' || $allowedtypes == 'video') { |
|
| 70 | 70 | // Add parameters for audiortc. |
| 71 | 71 | $params['videortc'] = array( |
| 72 | 72 | 'contextid' => $options['context']->id, |