@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * recordings from a different activity even from a different course. |
| 104 | 104 | **/ |
| 105 | 105 | |
| 106 | - /* |
|
| 106 | + /* |
|
| 107 | 107 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 108 | 108 | * activities will have the 'import recordings' capability enabled. |
| 109 | 109 | * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * 'Join session' button enabled |
| 125 | 125 | **/ |
| 126 | 126 | |
| 127 | - /* |
|
| 127 | + /* |
|
| 128 | 128 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 129 | 129 | * activities will have the 'wait for moderator' capability enabled by |
| 130 | 130 | * default. |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0; |
| 277 | 277 | */ |
| 278 | 278 | |
| 279 | - /* When the value is set to 1 (checked) the playback URLs will be validated |
|
| 279 | + /* When the value is set to 1 (checked) the playback URLs will be validated |
|
| 280 | 280 | * before the user access it. |
| 281 | 281 | * $CFG->bigbluebuttonbn['recordings_validate_url'] = 1; |
| 282 | 282 | */ |
@@ -366,27 +366,27 @@ discard block |
||
| 366 | 366 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 367 | 367 | */ |
| 368 | 368 | |
| 369 | - /* |
|
| 369 | + /* |
|
| 370 | 370 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 371 | 371 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 372 | 372 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 373 | 373 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 374 | 374 | */ |
| 375 | 375 | |
| 376 | - /* |
|
| 376 | + /* |
|
| 377 | 377 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 378 | 378 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 379 | 379 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 380 | 380 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 381 | 381 | */ |
| 382 | 382 | |
| 383 | - /* |
|
| 383 | + /* |
|
| 384 | 384 | * Additionally, when general_warning_button_href value is different than "", a button |
| 385 | 385 | * can also be shown right after the message. |
| 386 | 386 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 387 | 387 | */ |
| 388 | 388 | |
| 389 | - /* |
|
| 389 | + /* |
|
| 390 | 390 | * Finally, the text and class for the button can be modified |
| 391 | 391 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 392 | 392 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 31 | 31 | require_once($CFG->libdir.'/adminlib.php'); |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -63,12 +63,12 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function render_group_header($name, $itemname = null, $itemdescription = null) { |
| 65 | 65 | if ($itemname === null) { |
| 66 | - $itemname = get_string('config_' . $name, 'bigbluebuttonbn'); |
|
| 66 | + $itemname = get_string('config_'.$name, 'bigbluebuttonbn'); |
|
| 67 | 67 | } |
| 68 | 68 | if ($itemdescription === null) { |
| 69 | - $itemdescription = get_string('config_' .$name . '_description', 'bigbluebuttonbn'); |
|
| 69 | + $itemdescription = get_string('config_'.$name.'_description', 'bigbluebuttonbn'); |
|
| 70 | 70 | } |
| 71 | - $item = new \admin_setting_heading('bigbluebuttonbn_config_' . $name, $itemname, $itemdescription); |
|
| 71 | + $item = new \admin_setting_heading('bigbluebuttonbn_config_'.$name, $itemname, $itemdescription); |
|
| 72 | 72 | $this->settings->add($item); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | * @return Object |
| 98 | 98 | */ |
| 99 | 99 | public function render_group_element_text($name, $default = null, $type = PARAM_RAW) { |
| 100 | - $item = new \admin_setting_configtext('bigbluebuttonbn_' . $name, |
|
| 101 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 102 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 100 | + $item = new \admin_setting_configtext('bigbluebuttonbn_'.$name, |
|
| 101 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 102 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 103 | 103 | $default, $type); |
| 104 | 104 | return $item; |
| 105 | 105 | } |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | * @return Object |
| 114 | 114 | */ |
| 115 | 115 | public function render_group_element_checkbox($name, $default = null) { |
| 116 | - $item = new \admin_setting_configcheckbox('bigbluebuttonbn_' . $name, |
|
| 117 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 118 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 116 | + $item = new \admin_setting_configcheckbox('bigbluebuttonbn_'.$name, |
|
| 117 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 118 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 119 | 119 | $default); |
| 120 | 120 | return $item; |
| 121 | 121 | } |
@@ -130,9 +130,9 @@ discard block |
||
| 130 | 130 | * @return Object |
| 131 | 131 | */ |
| 132 | 132 | public function render_group_element_configmultiselect($name, $defaultsetting, $choices) { |
| 133 | - $item = new \admin_setting_configmultiselect('bigbluebuttonbn_' . $name, |
|
| 134 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 135 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 133 | + $item = new \admin_setting_configmultiselect('bigbluebuttonbn_'.$name, |
|
| 134 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 135 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 136 | 136 | $defaultsetting, $choices); |
| 137 | 137 | return $item; |
| 138 | 138 | } |
@@ -147,9 +147,9 @@ discard block |
||
| 147 | 147 | * @return Object |
| 148 | 148 | */ |
| 149 | 149 | public function render_group_element_configselect($name, $defaultsetting, $choices) { |
| 150 | - $item = new \admin_setting_configselect('bigbluebuttonbn_' . $name, |
|
| 151 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 152 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 150 | + $item = new \admin_setting_configselect('bigbluebuttonbn_'.$name, |
|
| 151 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 152 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 153 | 153 | $defaultsetting, $choices); |
| 154 | 154 | return $item; |
| 155 | 155 | } |
@@ -165,14 +165,14 @@ discard block |
||
| 165 | 165 | * @return Object |
| 166 | 166 | */ |
| 167 | 167 | public function render_warning_message($name, $message, $type = 'warning', $closable = true) { |
| 168 | - $output = $this->output->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
|
| 169 | - 'bigbluebuttonbn_' . $name)."\n"; |
|
| 168 | + $output = $this->output->box_start('box boxalignleft adminerror alert alert-'.$type.' alert-block fade in', |
|
| 169 | + 'bigbluebuttonbn_'.$name)."\n"; |
|
| 170 | 170 | if ($closable) { |
| 171 | - $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>' . "\n"; |
|
| 171 | + $output .= ' <button type="button" class="close" data-dismiss="alert">×</button>'."\n"; |
|
| 172 | 172 | } |
| 173 | - $output .= ' ' . $message . "\n"; |
|
| 174 | - $output .= $this->output->box_end() . "\n"; |
|
| 175 | - $item = new \admin_setting_heading('bigbluebuttonbn_' . $name, '', $output); |
|
| 173 | + $output .= ' '.$message."\n"; |
|
| 174 | + $output .= $this->output->box_end()."\n"; |
|
| 175 | + $item = new \admin_setting_heading('bigbluebuttonbn_'.$name, '', $output); |
|
| 176 | 176 | $this->settings->add($item); |
| 177 | 177 | return $item; |
| 178 | 178 | } |
@@ -194,8 +194,8 @@ discard block |
||
| 194 | 194 | $filemanageroptions['mainfile'] = true; |
| 195 | 195 | |
| 196 | 196 | $filemanager = new \admin_setting_configstoredfile('mod_bigbluebuttonbn/presentationdefault', |
| 197 | - get_string('config_' . $name, 'bigbluebuttonbn'), |
|
| 198 | - get_string('config_' . $name . '_description', 'bigbluebuttonbn'), |
|
| 197 | + get_string('config_'.$name, 'bigbluebuttonbn'), |
|
| 198 | + get_string('config_'.$name.'_description', 'bigbluebuttonbn'), |
|
| 199 | 199 | 'presentationdefault', |
| 200 | 200 | 0, |
| 201 | 201 | $filemanageroptions); |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | |
| 28 | 28 | defined('MOODLE_INTERNAL') || die(); |
| 29 | 29 | |
| 30 | -use context_module; |
|
| 31 | 30 | use mod_bigbluebuttonbn\locallib\bigbluebutton; |
| 32 | 31 | |
| 33 | 32 | require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | use context_module; |
| 31 | 31 | use mod_bigbluebuttonbn\locallib\bigbluebutton; |
| 32 | 32 | |
| 33 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 34 | -require_once($CFG->dirroot . '/lib/grouplib.php'); |
|
| 33 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 34 | +require_once($CFG->dirroot.'/lib/grouplib.php'); |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Mobile output class for bigbluebuttonbn |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | if ($response['returncode'] == 'FAILED') { |
| 166 | 166 | // The meeting could not be created. |
| 167 | - $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 167 | + $errorkey = bigbluebuttonbn_get_error_key($response['messageKey'], 'view_error_create'); |
|
| 168 | 168 | $e = get_string($errorkey, 'bigbluebuttonbn'); |
| 169 | 169 | return(self::mobile_print_error($e)); |
| 170 | 170 | } |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | 'html' => $OUTPUT->render_from_template('mod_bigbluebuttonbn/mobile_view_notification', $data), |
| 282 | 282 | ), |
| 283 | 283 | ), |
| 284 | - 'javascript' => file_get_contents($CFG->dirroot . '/mod/bigbluebuttonbn/mobile.notification.js'), |
|
| 284 | + 'javascript' => file_get_contents($CFG->dirroot.'/mod/bigbluebuttonbn/mobile.notification.js'), |
|
| 285 | 285 | 'otherdata' => '', |
| 286 | 286 | 'files' => '' |
| 287 | 287 | ); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | defined('MOODLE_INTERNAL') || die(); |
| 31 | 31 | global $CFG; |
| 32 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 32 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Wrapper for executing http requests on a BigBlueButton server. |
@@ -48,18 +48,18 @@ discard block |
||
| 48 | 48 | * @return string |
| 49 | 49 | */ |
| 50 | 50 | public static function action_url($action = '', $data = array(), $metadata = array()) { |
| 51 | - $baseurl = self::sanitized_url() . $action . '?'; |
|
| 51 | + $baseurl = self::sanitized_url().$action.'?'; |
|
| 52 | 52 | $metadata = array_combine( |
| 53 | 53 | array_map( |
| 54 | 54 | function($k) { |
| 55 | - return 'meta_' . $k; |
|
| 55 | + return 'meta_'.$k; |
|
| 56 | 56 | } |
| 57 | 57 | , array_keys($metadata) |
| 58 | 58 | ), |
| 59 | 59 | $metadata |
| 60 | 60 | ); |
| 61 | 61 | $params = http_build_query($data + $metadata, '', '&'); |
| 62 | - return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret()); |
|
| 62 | + return $baseurl.$params.'&checksum='.sha1($action.$params.self::sanitized_secret()); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | if (substr($serverurl, -4) == '/api') { |
| 76 | 76 | $serverurl = rtrim($serverurl, '/api'); |
| 77 | 77 | } |
| 78 | - return $serverurl . '/api/'; |
|
| 78 | + return $serverurl.'/api/'; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -96,9 +96,9 @@ discard block |
||
| 96 | 96 | $pserverurl = parse_url(trim(config::get('server_url'))); |
| 97 | 97 | $pserverurlport = ""; |
| 98 | 98 | if (isset($pserverurl['port'])) { |
| 99 | - $pserverurlport = ":" . $pserverurl['port']; |
|
| 99 | + $pserverurlport = ":".$pserverurl['port']; |
|
| 100 | 100 | } |
| 101 | - return $pserverurl['scheme'] . "://" . $pserverurl['host'] . $pserverurlport . "/"; |
|
| 101 | + return $pserverurl['scheme']."://".$pserverurl['host'].$pserverurlport."/"; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -152,15 +152,15 @@ discard block |
||
| 152 | 152 | $bbbsession['serverversion'] = (string) $serverversion; |
| 153 | 153 | |
| 154 | 154 | // Operation URLs. |
| 155 | - $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $cm->id; |
|
| 156 | - $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $cm->id . |
|
| 157 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 158 | - $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
|
| 159 | - 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 160 | - $bbbsession['meetingEventsURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=meeting' . |
|
| 161 | - '_events&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 162 | - $bbbsession['joinURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=join&id=' . $cm->id . |
|
| 163 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
|
| 155 | + $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$cm->id; |
|
| 156 | + $bbbsession['logoutURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$cm->id. |
|
| 157 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 158 | + $bbbsession['recordingReadyURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=recording_'. |
|
| 159 | + 'ready&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 160 | + $bbbsession['meetingEventsURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=meeting'. |
|
| 161 | + '_events&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 162 | + $bbbsession['joinURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=join&id='.$cm->id. |
|
| 163 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; |
|
| 164 | 164 | |
| 165 | 165 | return $bbbsession; |
| 166 | 166 | } |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | if ($viewinstance) { |
| 268 | 268 | $bbbsession = self::build_bbb_session_fromviewinstance($viewinstance); |
| 269 | 269 | if ($bbbsession) { |
| 270 | - require_once($CFG->dirroot . "/mod/bigbluebuttonbn/brokerlib.php"); |
|
| 270 | + require_once($CFG->dirroot."/mod/bigbluebuttonbn/brokerlib.php"); |
|
| 271 | 271 | $info = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], false); |
| 272 | 272 | $running = false; |
| 273 | 273 | if ($info['returncode'] == 'SUCCESS') { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | defined('MOODLE_INTERNAL') || die(); |
| 28 | 28 | global $CFG; |
| 29 | -require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php'); |
|
| 29 | +require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php'); |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Methods used to render view BBB in mobile. |
@@ -95,18 +95,18 @@ discard block |
||
| 95 | 95 | 'bbb-recording-tags' => bigbluebuttonbn_get_tags($bbbsession['cm']->id), // Same as $id. |
| 96 | 96 | ]; |
| 97 | 97 | // Check recording status. |
| 98 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
|
| 98 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
|
| 99 | 99 | $metadatabbb["bn-recording-status"] = json_encode( |
| 100 | 100 | array( |
| 101 | - 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
|
| 101 | + 'email' => array('"'.fullname($USER).'" <'.$USER->email.'>'), |
|
| 102 | 102 | 'context' => $bbbsession['bigbluebuttonbnURL'] |
| 103 | 103 | ) |
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
|
| 106 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingready_enabled')) { |
|
| 107 | 107 | $metadatabbb['bn-recording-ready-url'] = $bbbsession['recordingReadyURL']; |
| 108 | 108 | } |
| 109 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
| 109 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { |
|
| 110 | 110 | $metadatabbb['bn-meeting-events-url'] = $bbbsession['meetingEventsURL']; |
| 111 | 111 | } |
| 112 | 112 | return $metadatabbb; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @return string |
| 168 | 168 | */ |
| 169 | 169 | public static function bigbluebutton_bbb_view_create_meeting_data_record($record) { |
| 170 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { |
|
| 170 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { |
|
| 171 | 171 | return 'true'; |
| 172 | 172 | } |
| 173 | 173 | return 'false'; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * @return integer |
| 181 | 181 | */ |
| 182 | 182 | public static function bigbluebutton_bbb_view_create_meeting_data_duration($closingtime) { |
| 183 | - if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { |
|
| 183 | + if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { |
|
| 184 | 184 | return bigbluebuttonbn_get_duration($closingtime); |
| 185 | 185 | } |
| 186 | 186 | return 0; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function view_bigbluebuttonbn($bigbluebuttonbnid) { |
| 63 | 63 | global $DB, $CFG; |
| 64 | - require_once($CFG->dirroot . "/mod/bigbluebuttonbn/lib.php"); |
|
| 64 | + require_once($CFG->dirroot."/mod/bigbluebuttonbn/lib.php"); |
|
| 65 | 65 | |
| 66 | 66 | $params = self::validate_parameters(self::view_bigbluebuttonbn_parameters(), |
| 67 | 67 | array( |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since Moodle 3.3 |
| 110 | 110 | */ |
| 111 | 111 | public static function get_bigbluebuttonbns_by_courses_parameters() { |
| 112 | - return new external_function_parameters ( |
|
| 112 | + return new external_function_parameters( |
|
| 113 | 113 | array( |
| 114 | 114 | 'courseids' => new external_multiple_structure( |
| 115 | 115 | new external_value(PARAM_INT, 'Course id'), 'Array of course ids', VALUE_DEFAULT, array() |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | public static function can_join($cmid) { |
| 227 | 227 | global $SESSION, $CFG; |
| 228 | - require_once($CFG->dirroot . "/mod/bigbluebuttonbn/locallib.php"); |
|
| 228 | + require_once($CFG->dirroot."/mod/bigbluebuttonbn/locallib.php"); |
|
| 229 | 229 | |
| 230 | 230 | $params = self::validate_parameters(self::can_join_parameters(), |
| 231 | 231 | array( |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | mod_bigbluebuttonbn\locallib\bigbluebutton::view_bbbsession_set($PAGE->context, $bbbsession); |
| 59 | 59 | |
| 60 | 60 | // Validates if the BigBlueButton server is working. |
| 61 | -$serverversion = bigbluebuttonbn_get_server_version(); // In locallib. |
|
| 61 | +$serverversion = bigbluebuttonbn_get_server_version(); // In locallib. |
|
| 62 | 62 | if ($serverversion === null) { |
| 63 | 63 | $errmsg = 'view_error_unable_join_student'; |
| 64 | 64 | $errurl = '/course/view.php'; |