| @@ -59,7 +59,7 @@ | ||
| 59 | 59 |          $logs = new backup_nested_element('logs'); | 
| 60 | 60 | |
| 61 | 61 |          $log = new backup_nested_element('log', array('id'), array( | 
| 62 | - 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta', )); | |
| 62 | + 'courseid', 'bigbluebuttonbnid', 'userid', 'timecreated', 'meetingid', 'log', 'meta',)); | |
| 63 | 63 | |
| 64 | 64 | // Build the tree. | 
| 65 | 65 | $bigbluebuttonbn->add_child($logs); | 
| @@ -126,7 +126,7 @@ | ||
| 126 | 126 | echo $completionvalidate; | 
| 127 | 127 | return; | 
| 128 | 128 | } | 
| 129 | -    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); | |
| 129 | +    header('HTTP/1.0 400 Bad request. The action '.$a.' doesn\'t exist'); | |
| 130 | 130 |  } catch (Exception $e) { | 
| 131 | 131 |      header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); | 
| 132 | 132 | } | 
| @@ -626,7 +626,7 @@ discard block | ||
| 626 | 626 | // Pull the Bearer from the headers. | 
| 627 | 627 |          if (!array_key_exists('Authorization', $headers)) { | 
| 628 | 628 | $msg = 'Authorization failed'; | 
| 629 | -            header('HTTP/1.0 400 Bad Request. ' . $msg); | |
| 629 | +            header('HTTP/1.0 400 Bad Request. '.$msg); | |
| 630 | 630 | return; | 
| 631 | 631 | } | 
| 632 | 632 |          $authorization = explode(" ", $headers['Authorization']); | 
| @@ -641,8 +641,8 @@ discard block | ||
| 641 | 641 | // Convert JSON string to a JSON object. | 
| 642 | 642 | $jsonobj = json_decode($jsonstr); | 
| 643 | 643 |      } catch (Exception $e) { | 
| 644 | - $msg = 'Caught exception: ' . $e->getMessage(); | |
| 645 | -        header('HTTP/1.0 400 Bad Request. ' . $msg); | |
| 644 | + $msg = 'Caught exception: '.$e->getMessage(); | |
| 645 | +        header('HTTP/1.0 400 Bad Request. '.$msg); | |
| 646 | 646 | return; | 
| 647 | 647 | } | 
| 648 | 648 | |
| @@ -651,7 +651,7 @@ discard block | ||
| 651 | 651 |      $meetingidelements = explode('-', $meetingidelements[0]); | 
| 652 | 652 |      if (!isset($bigbluebuttonbn) || $bigbluebuttonbn->meetingid != $meetingidelements[0]) { | 
| 653 | 653 | $msg = 'The activity may have been deleted'; | 
| 654 | -        header('HTTP/1.0 410 Gone. ' . $msg); | |
| 654 | +        header('HTTP/1.0 410 Gone. '.$msg); | |
| 655 | 655 | return; | 
| 656 | 656 | } | 
| 657 | 657 | |
| @@ -664,11 +664,11 @@ discard block | ||
| 664 | 664 | // Process the events. | 
| 665 | 665 | bigbluebuttonbn_process_meeting_events($bigbluebuttonbn, $jsonobj); | 
| 666 | 666 | $msg = 'Enqueued.'; | 
| 667 | -        header('HTTP/1.0 202 Accepted. ' . $msg); | |
| 667 | +        header('HTTP/1.0 202 Accepted. '.$msg); | |
| 668 | 668 | return; | 
| 669 | 669 | } | 
| 670 | 670 | $msg = 'Already processed.'; | 
| 671 | -    header('HTTP/1.0 202 Accepted. ' . $msg); | |
| 671 | +    header('HTTP/1.0 202 Accepted. '.$msg); | |
| 672 | 672 | } | 
| 673 | 673 | |
| 674 | 674 | /** | 
| @@ -47,7 +47,7 @@ | ||
| 47 | 47 |      print_error('view_error_invalid_session', plugin::COMPONENT); | 
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | -if (!(boolean)\mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) { | |
| 50 | +if (!(boolean) \mod_bigbluebuttonbn\locallib\config::importrecordings_enabled()) { | |
| 51 | 51 |      print_error('view_message_importrecordings_disabled', plugin::COMPONENT); | 
| 52 | 52 | } | 
| 53 | 53 | |
| @@ -309,8 +309,8 @@ discard block | ||
| 309 | 309 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 310 | 310 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6], | 
| 311 | 311 |                  ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'), | 
| 312 | - 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] | |
| 313 | - ); | |
| 312 | + 'type' => 'numeric', 'rule' => '####', 'validator' => 'server'] | |
| 313 | + ); | |
| 314 | 314 |          } else { | 
| 315 | 315 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 316 | 316 | $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]); | 
| @@ -380,7 +380,7 @@ discard block | ||
| 380 | 380 |      private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) { | 
| 381 | 381 | $recordingsettings = false; | 
| 382 | 382 | $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT, | 
| 383 | - 'description_key' => null]; | |
| 383 | + 'description_key' => null]; | |
| 384 | 384 |          if ($cfg['recordings_html_editable']) { | 
| 385 | 385 | $field['type'] = 'checkbox'; | 
| 386 | 386 | $field['description_key'] = 'mod_form_field_recordings_html'; | 
| @@ -389,7 +389,7 @@ discard block | ||
| 389 | 389 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 390 | 390 | $field['description_key'], $cfg['recordings_html_default']); | 
| 391 | 391 | $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT, | 
| 392 | - 'description_key' => null]; | |
| 392 | + 'description_key' => null]; | |
| 393 | 393 |          if ($cfg['recordings_deleted_editable']) { | 
| 394 | 394 | $field['type'] = 'checkbox'; | 
| 395 | 395 | $field['description_key'] = 'mod_form_field_recordings_deleted'; | 
| @@ -398,7 +398,7 @@ discard block | ||
| 398 | 398 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 399 | 399 | $field['description_key'], $cfg['recordings_deleted_default']); | 
| 400 | 400 | $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT, | 
| 401 | - 'description_key' => null]; | |
| 401 | + 'description_key' => null]; | |
| 402 | 402 |          if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) { | 
| 403 | 403 | $field['type'] = 'checkbox'; | 
| 404 | 404 | $field['description_key'] = 'mod_form_field_recordings_imported'; | 
| @@ -407,7 +407,7 @@ discard block | ||
| 407 | 407 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 408 | 408 | $field['description_key'], $cfg['recordings_imported_default']); | 
| 409 | 409 | $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT, | 
| 410 | - 'description_key' => null]; | |
| 410 | + 'description_key' => null]; | |
| 411 | 411 |          if ($cfg['recordings_preview_editable']) { | 
| 412 | 412 | $field['type'] = 'checkbox'; | 
| 413 | 413 | $field['description_key'] = 'mod_form_field_recordings_preview'; | 
| @@ -484,7 +484,7 @@ discard block | ||
| 484 | 484 | $htmlselectiontype = html_writer::select($participantselection['type_options'], | 
| 485 | 485 | 'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(), | 
| 486 | 486 |              array('id' => 'bigbluebuttonbn_participant_selection_type', | 
| 487 | - 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); | |
| 487 | + 'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;')); | |
| 488 | 488 | $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection', | 
| 489 | 489 | $participantselection['selected'], array(), | 
| 490 | 490 |              array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled')); | 
| @@ -492,7 +492,7 @@ discard block | ||
| 492 | 492 | 'type' => 'button', 'class' => 'btn btn-secondary', | 
| 493 | 493 |              'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'), | 
| 494 | 494 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' | 
| 495 | - )); | |
| 495 | + )); | |
| 496 | 496 |          $htmladdparticipant = html_writer::tag('div', | 
| 497 | 497 | $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null); | 
| 498 | 498 |          $mform->addElement('html', "\n\n"); | 
| @@ -534,9 +534,9 @@ discard block | ||
| 534 | 534 | $field['type'] = 'select'; | 
| 535 | 535 | $field['data_type'] = PARAM_TEXT; | 
| 536 | 536 | $field['description_key'] = 'mod_form_field_block_clienttype'; | 
| 537 | -             $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), | |
| 538 | -                             BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); | |
| 539 | -             $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); | |
| 537 | +                $choices = array(BIGBLUEBUTTON_CLIENTTYPE_FLASH => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), | |
| 538 | +                                BIGBLUEBUTTON_CLIENTTYPE_HTML5 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn')); | |
| 539 | +                $mform->addElement('header', 'clienttypeselection', get_string('mod_form_block_clienttype', 'bigbluebuttonbn')); | |
| 540 | 540 | $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], | 
| 541 | 541 | $field['description_key'], $cfg['clienttype_default'], $choices); | 
| 542 | 542 | return; | 
| @@ -99,8 +99,8 @@ discard block | ||
| 99 | 99 | $PAGE->requires->strings_for_js(array_keys(bigbluebuttonbn_get_strings_for_js()), 'bigbluebuttonbn'); | 
| 100 | 100 | $jsvars['participantData'] = bigbluebuttonbn_get_participant_data($context, $bigbluebuttonbn); | 
| 101 | 101 | $jsvars['participantList'] = $participantlist; | 
| 102 | - $jsvars['iconsEnabled'] = (boolean)$cfg['recording_icons_enabled']; | |
| 103 | -        $jsvars['pixIconDelete'] = (string)$OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle'); | |
| 102 | + $jsvars['iconsEnabled'] = (boolean) $cfg['recording_icons_enabled']; | |
| 103 | +        $jsvars['pixIconDelete'] = (string) $OUTPUT->pix_icon('t/delete', get_string('delete'), 'moodle'); | |
| 104 | 104 |          $PAGE->requires->yui_module('moodle-mod_bigbluebuttonbn-modform', | 
| 105 | 105 | 'M.mod_bigbluebuttonbn.modform.init', array($jsvars)); | 
| 106 | 106 | } | 
| @@ -171,7 +171,7 @@ discard block | ||
| 171 | 171 | */ | 
| 172 | 172 |      public function add_completion_rules() { | 
| 173 | 173 | $mform = $this->_form; | 
| 174 | -        if (!bigbluebuttonbn_is_bn_server() || !(boolean)\mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { | |
| 174 | +        if (!bigbluebuttonbn_is_bn_server() || !(boolean) \mod_bigbluebuttonbn\locallib\config::get('meetingevents_enabled')) { | |
| 175 | 175 | return []; | 
| 176 | 176 | } | 
| 177 | 177 | |
| @@ -179,7 +179,7 @@ discard block | ||
| 179 | 179 |          $attendance['grouplabel'] = get_string('completionattendancegroup', 'bigbluebuttonbn'); | 
| 180 | 180 |          $attendance['rulelabel'] = get_string('completionattendance', 'bigbluebuttonbn'); | 
| 181 | 181 | $attendance['group'] = [ | 
| 182 | -            $mform->createElement('checkbox', 'completionattendanceenabled', '', $attendance['rulelabel'] . ' '), | |
| 182 | +            $mform->createElement('checkbox', 'completionattendanceenabled', '', $attendance['rulelabel'].' '), | |
| 183 | 183 |              $mform->createElement('text', 'completionattendance', '', ['size' => 3]), | 
| 184 | 184 |              $mform->createElement('static', 'completionattendanceunit', ' ', get_string('minutes', 'bigbluebuttonbn')) | 
| 185 | 185 | ]; | 
| @@ -197,11 +197,11 @@ discard block | ||
| 197 | 197 |          $engagement['pollvotes'] = get_string('completionengagementpollvotes', 'bigbluebuttonbn'); | 
| 198 | 198 |          $engagement['emojis'] = get_string('completionengagementemojis', 'bigbluebuttonbn'); | 
| 199 | 199 | $engagement['group'] = [ | 
| 200 | -            $mform->createElement('checkbox', 'completionengagementchats', '', $engagement['chatlabel'] . '  '), | |
| 201 | -            $mform->createElement('checkbox', 'completionengagementtalks', '', $engagement['talklabel'] . '  '), | |
| 202 | -            $mform->createElement('checkbox', 'completionengagementraisehand', '', $engagement['raisehand'] . '  '), | |
| 203 | -            $mform->createElement('checkbox', 'completionengagementpollvotes', '', $engagement['pollvotes'] . '  '), | |
| 204 | -            $mform->createElement('checkbox', 'completionengagementemojis', '', $engagement['emojis'] . '  '), | |
| 200 | +            $mform->createElement('checkbox', 'completionengagementchats', '', $engagement['chatlabel'].'  '), | |
| 201 | +            $mform->createElement('checkbox', 'completionengagementtalks', '', $engagement['talklabel'].'  '), | |
| 202 | +            $mform->createElement('checkbox', 'completionengagementraisehand', '', $engagement['raisehand'].'  '), | |
| 203 | +            $mform->createElement('checkbox', 'completionengagementpollvotes', '', $engagement['pollvotes'].'  '), | |
| 204 | +            $mform->createElement('checkbox', 'completionengagementemojis', '', $engagement['emojis'].'  '), | |
| 205 | 205 | ]; | 
| 206 | 206 | $mform->addGroup($engagement['group'], 'completionengagementgroup', $engagement['grouplabel'], [' '], false); | 
| 207 | 207 |          $mform->addHelpButton('completionengagementgroup', 'completionengagementgroup', 'bigbluebuttonbn'); | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * @return void | 
| 249 | 249 | */ | 
| 250 | 250 |      private function bigbluebuttonbn_mform_add_block_profiles(&$mform, $profiles) { | 
| 251 | -        if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { | |
| 251 | +        if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled()) { | |
| 252 | 252 |              $mform->addElement('select', 'type', get_string('mod_form_field_instanceprofiles', 'bigbluebuttonbn'), | 
| 253 | 253 | bigbluebuttonbn_get_instance_profiles_array($profiles), | 
| 254 | 254 |                  array('onchange' => 'M.mod_bigbluebuttonbn.modform.updateInstanceTypeProfile(this);')); | 
| @@ -487,7 +487,7 @@ discard block | ||
| 487 | 487 | 'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;' | 
| 488 | 488 | )); | 
| 489 | 489 |          $htmladdparticipant = html_writer::tag('div', | 
| 490 | - $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null); | |
| 490 | + $htmlselectiontype.'  '.$htmlselectionoptions.'  '.$htmlselectioninput, null); | |
| 491 | 491 |          $mform->addElement('html', "\n\n"); | 
| 492 | 492 |          $mform->addElement('static', 'static_add_participant', | 
| 493 | 493 |              get_string('mod_form_field_participant_add', 'bigbluebuttonbn'), $htmladdparticipant); | 
| @@ -58,7 +58,7 @@ | ||
| 58 | 58 | bigbluebuttonbn_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'; | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | 'coursebigbluebuttonbn' => array( // Handler unique name (can be anything). | 
| 32 | 32 | 'displaydata' => array( | 
| 33 | 33 | 'title' => 'pluginname', | 
| 34 | - 'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.gif', | |
| 34 | + 'icon' => $CFG->wwwroot.'/mod/bigbluebuttonbn/pix/icon.gif', | |
| 35 | 35 | 'class' => '', | 
| 36 | 36 | ), | 
| 37 | 37 | 'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on). | 
| @@ -43,8 +43,8 @@ discard block | ||
| 43 | 43 | // The endpoints for recording_ready and meeting_events callbacks must be moved to services (CONTRIB-7440). | 
| 44 | 44 | // But in order to support the transition, requests other than the callbacks are redirected to bbb_ajax.php. | 
| 45 | 45 |  if ($params['action'] != 'recording_ready' && $params['action'] != 'meeting_events') { | 
| 46 | - $url = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_ajax.php?' . http_build_query($params, '', '&'); | |
| 47 | -    header("Location: " . $url); | |
| 46 | + $url = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_ajax.php?'.http_build_query($params, '', '&'); | |
| 47 | +    header("Location: ".$url); | |
| 48 | 48 | exit; | 
| 49 | 49 | } | 
| 50 | 50 | |
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | bigbluebuttonbn_broker_meeting_events($bigbluebuttonbn); | 
| 72 | 72 | return; | 
| 73 | 73 | } | 
| 74 | -    header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); | |
| 74 | +    header('HTTP/1.0 400 Bad request. The action '.$a.' doesn\'t exist'); | |
| 75 | 75 |  } catch (Exception $e) { | 
| 76 | 76 |      header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); | 
| 77 | 77 | } | 
| @@ -309,10 +309,10 @@ discard block | ||
| 309 | 309 | */ | 
| 310 | 310 |  function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) { | 
| 311 | 311 | $data = ['meetingID' => $bbbsession['meetingid'], | 
| 312 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), | |
| 313 | - 'attendeePW' => $bbbsession['viewerPW'], | |
| 314 | - 'moderatorPW' => $bbbsession['modPW'], | |
| 315 | - 'logoutURL' => $bbbsession['logoutURL'], | |
| 312 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), | |
| 313 | + 'attendeePW' => $bbbsession['viewerPW'], | |
| 314 | + 'moderatorPW' => $bbbsession['modPW'], | |
| 315 | + 'logoutURL' => $bbbsession['logoutURL'], | |
| 316 | 316 | ]; | 
| 317 | 317 | $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']); | 
| 318 | 318 | // Check if auto_start_record is enable. | 
| @@ -334,7 +334,7 @@ discard block | ||
| 334 | 334 | '%duration%', | 
| 335 | 335 | (string) $durationtime, | 
| 336 | 336 |              get_string('bbbdurationwarning', 'bigbluebuttonbn') | 
| 337 | - ); | |
| 337 | + ); | |
| 338 | 338 | } | 
| 339 | 339 | $voicebridge = intval($bbbsession['voicebridge']); | 
| 340 | 340 |      if ($voicebridge > 0 && $voicebridge < 79999) { | 
| @@ -85,15 +85,15 @@ discard block | ||
| 85 | 85 | $bbbsession['serverversion'] = (string) $serverversion; | 
| 86 | 86 | |
| 87 | 87 | // Operation URLs. | 
| 88 | - $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; | |
| 89 | - $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id . | |
| 90 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; | |
| 91 | - $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . | |
| 92 | - 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; | |
| 93 | - $bbbsession['meetingEventsURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=meeting' . | |
| 94 | - '_events&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; | |
| 95 | - $bbbsession['joinURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=join&id=' . $cm->id . | |
| 96 | - '&bn=' . $bbbsession['bigbluebuttonbn']->id; | |
| 88 | + $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$bbbsession['cm']->id; | |
| 89 | + $bbbsession['logoutURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id. | |
| 90 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; | |
| 91 | + $bbbsession['recordingReadyURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=recording_'. | |
| 92 | + 'ready&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; | |
| 93 | + $bbbsession['meetingEventsURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_broker.php?action=meeting'. | |
| 94 | + '_events&bigbluebuttonbn='.$bbbsession['bigbluebuttonbn']->id; | |
| 95 | + $bbbsession['joinURL'] = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=join&id='.$cm->id. | |
| 96 | + '&bn='.$bbbsession['bigbluebuttonbn']->id; | |
| 97 | 97 | |
| 98 | 98 | // Check status and set extra values. | 
| 99 | 99 | $activitystatus = bigbluebuttonbn_view_get_activity_status($bbbsession); | 
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | $lastaccess = json_decode($lastaccess->meta); | 
| 156 | 156 | // If the user acceded from Timeline it should be redirected to the Dashboard. | 
| 157 | 157 |          if (isset($lastaccess->origin) && $lastaccess->origin == BIGBLUEBUTTON_ORIGIN_TIMELINE) { | 
| 158 | - redirect($CFG->wwwroot . '/my/'); | |
| 158 | + redirect($CFG->wwwroot.'/my/'); | |
| 159 | 159 | } | 
| 160 | 160 | // Close the tab or window where BBB was opened. | 
| 161 | 161 | bigbluebuttonbn_bbb_view_close_window(); | 
| @@ -357,7 +357,7 @@ discard block | ||
| 357 | 357 | * @return string | 
| 358 | 358 | */ | 
| 359 | 359 |  function bigbluebuttonbn_bbb_view_create_meeting_data_record($record) { | 
| 360 | -    if ((boolean)\mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { | |
| 360 | +    if ((boolean) \mod_bigbluebuttonbn\locallib\config::recordings_enabled() && $record) { | |
| 361 | 361 | return 'true'; | 
| 362 | 362 | } | 
| 363 | 363 | return 'false'; | 
| @@ -370,7 +370,7 @@ discard block | ||
| 370 | 370 | * @return integer | 
| 371 | 371 | */ | 
| 372 | 372 |  function bigbluebuttonbn_bbb_view_create_meeting_data_duration($closingtime) { | 
| 373 | -    if ((boolean)\mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { | |
| 373 | +    if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('scheduled_duration_enabled')) { | |
| 374 | 374 | return bigbluebuttonbn_get_duration($closingtime); | 
| 375 | 375 | } | 
| 376 | 376 | return 0; |