@@ -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 | */ |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | * $CFG->bigbluebuttonbn['disablecam_editable'] = 0; |
| 348 | 348 | */ |
| 349 | 349 | |
| 350 | - /* |
|
| 350 | + /* |
|
| 351 | 351 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 352 | 352 | * activities will have user microphones disabled. |
| 353 | 353 | * default. |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * $CFG->bigbluebuttonbn['disablemic_editable'] = 0; |
| 361 | 361 | */ |
| 362 | 362 | |
| 363 | - /* |
|
| 363 | + /* |
|
| 364 | 364 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 365 | 365 | * activities will have private chat disabled. |
| 366 | 366 | * default. |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * $CFG->bigbluebuttonbn['disableprivatechat_editable'] = 0; |
| 374 | 374 | */ |
| 375 | 375 | |
| 376 | - /* |
|
| 376 | + /* |
|
| 377 | 377 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 378 | 378 | * activities will have public chat disabled. |
| 379 | 379 | * default. |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | * $CFG->bigbluebuttonbn['disablepublicchat_editable'] = 0; |
| 387 | 387 | */ |
| 388 | 388 | |
| 389 | - /* |
|
| 389 | + /* |
|
| 390 | 390 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 391 | 391 | * activities will have shared notes disabled. |
| 392 | 392 | * default. |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | * $CFG->bigbluebuttonbn['disablenote_editable'] = 0; |
| 400 | 400 | */ |
| 401 | 401 | |
| 402 | - /* |
|
| 402 | + /* |
|
| 403 | 403 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 404 | 404 | * activities will have the user list hidden. |
| 405 | 405 | * default. |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | * $CFG->bigbluebuttonbn['hideuserlist_editable'] = 0; |
| 413 | 413 | */ |
| 414 | 414 | |
| 415 | - /* |
|
| 415 | + /* |
|
| 416 | 416 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 417 | 417 | * activities will have a locked layout. |
| 418 | 418 | * default. |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | * $CFG->bigbluebuttonbn['lockedlayout_editable'] = 0; |
| 426 | 426 | */ |
| 427 | 427 | |
| 428 | - /* |
|
| 428 | + /* |
|
| 429 | 429 | * When the value is set to 1 (checked) the bigbluebuttonbn rooms or |
| 430 | 430 | * activities will ignore the locking settings. |
| 431 | 431 | * default. |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | * $CFG->bigbluebuttonbn['lockonjoin_editable'] = 0; |
| 439 | 439 | */ |
| 440 | 440 | |
| 441 | - /* |
|
| 441 | + /* |
|
| 442 | 442 | * When the value is set to 1 (checked) the capability to ignore |
| 443 | 443 | * locking settings is enabled. |
| 444 | 444 | * $CFG->bigbluebuttonbn['lockonjoinconfigurable_default'] = 0; |
@@ -498,27 +498,27 @@ discard block |
||
| 498 | 498 | * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? "; |
| 499 | 499 | */ |
| 500 | 500 | |
| 501 | - /* |
|
| 501 | + /* |
|
| 502 | 502 | * The warning box is always shown to administrators, but it is also possible to define other roles |
| 503 | 503 | * to whom the it will be shown. The roles are based on the shortnames defined by Moodle: |
| 504 | 504 | * 'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage' |
| 505 | 505 | * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher'; |
| 506 | 506 | */ |
| 507 | 507 | |
| 508 | - /* |
|
| 508 | + /* |
|
| 509 | 509 | * As the general_warning_message is shown in a box, its type can be defined with general_warning_type |
| 510 | 510 | * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme. |
| 511 | 511 | * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger]. |
| 512 | 512 | * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info'; |
| 513 | 513 | */ |
| 514 | 514 | |
| 515 | - /* |
|
| 515 | + /* |
|
| 516 | 516 | * Additionally, when general_warning_button_href value is different than "", a button |
| 517 | 517 | * can also be shown right after the message. |
| 518 | 518 | * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/"; |
| 519 | 519 | */ |
| 520 | 520 | |
| 521 | - /* |
|
| 521 | + /* |
|
| 522 | 522 | * Finally, the text and class for the button can be modified |
| 523 | 523 | * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site"; |
| 524 | 524 | * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary"; |
@@ -189,64 +189,64 @@ |
||
| 189 | 189 | */ |
| 190 | 190 | public static function get_options() { |
| 191 | 191 | return array( |
| 192 | - 'version_major' => self::get_moodle_version_major(), |
|
| 193 | - 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 194 | - 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 195 | - 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 196 | - 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 197 | - 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 198 | - 'userlimit_default' => self::get('userlimit_default'), |
|
| 199 | - 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 200 | - 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 201 | - 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 202 | - 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 203 | - 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 204 | - 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 205 | - 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 206 | - 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 207 | - 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 208 | - 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 209 | - 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 210 | - 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 211 | - 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 212 | - 'recordings_validate_url' => self::get('recordings_validate_url'), |
|
| 213 | - 'recording_default' => self::get('recording_default'), |
|
| 214 | - 'recording_editable' => self::get('recording_editable'), |
|
| 215 | - 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 216 | - 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 217 | - 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 218 | - 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 219 | - 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 220 | - 'general_warning_message' => self::get('general_warning_message'), |
|
| 221 | - 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 222 | - 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 223 | - 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 224 | - 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 225 | - 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 226 | - 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 227 | - 'clienttype_default' => self::get('clienttype_default'), |
|
| 228 | - 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 229 | - 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 192 | + 'version_major' => self::get_moodle_version_major(), |
|
| 193 | + 'voicebridge_editable' => self::get('voicebridge_editable'), |
|
| 194 | + 'importrecordings_enabled' => self::get('importrecordings_enabled'), |
|
| 195 | + 'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'), |
|
| 196 | + 'waitformoderator_default' => self::get('waitformoderator_default'), |
|
| 197 | + 'waitformoderator_editable' => self::get('waitformoderator_editable'), |
|
| 198 | + 'userlimit_default' => self::get('userlimit_default'), |
|
| 199 | + 'userlimit_editable' => self::get('userlimit_editable'), |
|
| 200 | + 'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'), |
|
| 201 | + 'sendnotifications_enabled' => self::get('sendnotifications_enabled'), |
|
| 202 | + 'recordings_enabled' => self::get('recordings_enabled'), |
|
| 203 | + 'meetingevents_enabled' => self::get('meetingevents_enabled'), |
|
| 204 | + 'recordings_html_default' => self::get('recordings_html_default'), |
|
| 205 | + 'recordings_html_editable' => self::get('recordings_html_editable'), |
|
| 206 | + 'recordings_deleted_default' => self::get('recordings_deleted_default'), |
|
| 207 | + 'recordings_deleted_editable' => self::get('recordings_deleted_editable'), |
|
| 208 | + 'recordings_imported_default' => self::get('recordings_imported_default'), |
|
| 209 | + 'recordings_imported_editable' => self::get('recordings_imported_editable'), |
|
| 210 | + 'recordings_preview_default' => self::get('recordings_preview_default'), |
|
| 211 | + 'recordings_preview_editable' => self::get('recordings_preview_editable'), |
|
| 212 | + 'recordings_validate_url' => self::get('recordings_validate_url'), |
|
| 213 | + 'recording_default' => self::get('recording_default'), |
|
| 214 | + 'recording_editable' => self::get('recording_editable'), |
|
| 215 | + 'recording_icons_enabled' => self::get('recording_icons_enabled'), |
|
| 216 | + 'recording_all_from_start_default' => self::get('recording_all_from_start_default'), |
|
| 217 | + 'recording_all_from_start_editable' => self::get('recording_all_from_start_editable'), |
|
| 218 | + 'recording_hide_button_default' => self::get('recording_hide_button_default'), |
|
| 219 | + 'recording_hide_button_editable' => self::get('recording_hide_button_editable'), |
|
| 220 | + 'general_warning_message' => self::get('general_warning_message'), |
|
| 221 | + 'general_warning_box_type' => self::get('general_warning_box_type'), |
|
| 222 | + 'general_warning_button_text' => self::get('general_warning_button_text'), |
|
| 223 | + 'general_warning_button_href' => self::get('general_warning_button_href'), |
|
| 224 | + 'general_warning_button_class' => self::get('general_warning_button_class'), |
|
| 225 | + 'clienttype_enabled' => self::get('clienttype_enabled'), |
|
| 226 | + 'clienttype_editable' => self::get('clienttype_editable'), |
|
| 227 | + 'clienttype_default' => self::get('clienttype_default'), |
|
| 228 | + 'muteonstart_editable' => self::get('muteonstart_editable'), |
|
| 229 | + 'muteonstart_default' => self::get('muteonstart_default'), |
|
| 230 | 230 | |
| 231 | - 'disablecam_editable' => self::get('disablecam_editable'), |
|
| 232 | - 'disablecam_default' => self::get('disablecam_default'), |
|
| 233 | - 'disablemic_editable' => self::get('disablemic_editable'), |
|
| 234 | - 'disablemic_default' => self::get('disablemic_default'), |
|
| 235 | - 'disableprivatechat_editable' => self::get('disableprivatechat_editable'), |
|
| 236 | - 'disableprivatechat_default' => self::get('disableprivatechat_default'), |
|
| 237 | - 'disablepublicchat_editable' => self::get('disablepublicchat_editable'), |
|
| 238 | - 'disablepublicchat_default' => self::get('disablepublicchat_default'), |
|
| 239 | - 'disablenote_editable' => self::get('disablenote_editable'), |
|
| 240 | - 'disablenote_default' => self::get('disablenote_default'), |
|
| 241 | - 'hideuserlist_editable' => self::get('hideuserlist_editable'), |
|
| 242 | - 'hideuserlist_default' => self::get('hideuserlist_default'), |
|
| 243 | - 'lockedlayout_editable' => self::get('lockedlayout_editable'), |
|
| 244 | - 'lockedlayout_default' => self::get('lockedlayout_default'), |
|
| 245 | - 'lockonjoin_editable' => self::get('lockonjoin_editable'), |
|
| 246 | - 'lockonjoin_default' => self::get('lockonjoin_default'), |
|
| 247 | - 'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'), |
|
| 248 | - 'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'), |
|
| 231 | + 'disablecam_editable' => self::get('disablecam_editable'), |
|
| 232 | + 'disablecam_default' => self::get('disablecam_default'), |
|
| 233 | + 'disablemic_editable' => self::get('disablemic_editable'), |
|
| 234 | + 'disablemic_default' => self::get('disablemic_default'), |
|
| 235 | + 'disableprivatechat_editable' => self::get('disableprivatechat_editable'), |
|
| 236 | + 'disableprivatechat_default' => self::get('disableprivatechat_default'), |
|
| 237 | + 'disablepublicchat_editable' => self::get('disablepublicchat_editable'), |
|
| 238 | + 'disablepublicchat_default' => self::get('disablepublicchat_default'), |
|
| 239 | + 'disablenote_editable' => self::get('disablenote_editable'), |
|
| 240 | + 'disablenote_default' => self::get('disablenote_default'), |
|
| 241 | + 'hideuserlist_editable' => self::get('hideuserlist_editable'), |
|
| 242 | + 'hideuserlist_default' => self::get('hideuserlist_default'), |
|
| 243 | + 'lockedlayout_editable' => self::get('lockedlayout_editable'), |
|
| 244 | + 'lockedlayout_default' => self::get('lockedlayout_default'), |
|
| 245 | + 'lockonjoin_editable' => self::get('lockonjoin_editable'), |
|
| 246 | + 'lockonjoin_default' => self::get('lockonjoin_default'), |
|
| 247 | + 'lockonjoinconfigurable_editable' => self::get('lockonjoinconfigurable_editable'), |
|
| 248 | + 'lockonjoinconfigurable_default' => self::get('lockonjoinconfigurable_default'), |
|
| 249 | 249 | |
| 250 | - ); |
|
| 250 | + ); |
|
| 251 | 251 | } |
| 252 | 252 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | global $CFG; |
| 34 | 34 | |
| 35 | -require_once(__DIR__ . '/lib.php'); |
|
| 35 | +require_once(__DIR__.'/lib.php'); |
|
| 36 | 36 | |
| 37 | 37 | /** @var BIGBLUEBUTTONBN_UPDATE_CACHE boolean set to true indicates that cache has to be updated */ |
| 38 | 38 | const BIGBLUEBUTTONBN_UPDATE_CACHE = true; |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | || defined('BEHAT_UTIL')) { |
| 243 | 243 | // Just return the fake recording. |
| 244 | 244 | global $CFG; |
| 245 | - require_once($CFG->libdir . '/testing/generator/lib.php'); |
|
| 246 | - require_once(__DIR__ . '/tests/generator/lib.php'); |
|
| 245 | + require_once($CFG->libdir.'/testing/generator/lib.php'); |
|
| 246 | + require_once(__DIR__.'/tests/generator/lib.php'); |
|
| 247 | 247 | return mod_bigbluebuttonbn_generator::bigbluebuttonbn_get_recordings_array_fetch($meetingidsarray); |
| 248 | 248 | } |
| 249 | 249 | $recordings = array(); |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | if (is_object($value)) { |
| 421 | 421 | $value = ''; |
| 422 | 422 | } |
| 423 | - $metadataarray['meta_' . $key] = $value; |
|
| 423 | + $metadataarray['meta_'.$key] = $value; |
|
| 424 | 424 | } |
| 425 | 425 | return $metadataarray; |
| 426 | 426 | } |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | return $xml; |
| 561 | 561 | } catch (Exception $e) { |
| 562 | 562 | libxml_use_internal_errors($previous); |
| 563 | - $error = 'Caught exception: ' . $e->getMessage(); |
|
| 563 | + $error = 'Caught exception: '.$e->getMessage(); |
|
| 564 | 564 | debugging($error, DEBUG_DEVELOPER); |
| 565 | 565 | return null; |
| 566 | 566 | } |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | $response = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOBLANKS); |
| 572 | 572 | return $response; |
| 573 | 573 | } catch (Exception $e) { |
| 574 | - $error = 'Caught exception: ' . $e->getMessage(); |
|
| 574 | + $error = 'Caught exception: '.$e->getMessage(); |
|
| 575 | 575 | debugging($error, DEBUG_DEVELOPER); |
| 576 | 576 | libxml_use_internal_errors($previous); |
| 577 | 577 | return null; |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | */ |
| 591 | 591 | function bigbluebuttonbn_wrap_xml_load_file_curl_request($url, $method = 'GET', $data = null, $contenttype = 'text/xml') { |
| 592 | 592 | global $CFG; |
| 593 | - require_once($CFG->libdir . '/filelib.php'); |
|
| 593 | + require_once($CFG->libdir.'/filelib.php'); |
|
| 594 | 594 | $c = new curl(); |
| 595 | 595 | $c->setopt(array('SSL_VERIFYPEER' => true)); |
| 596 | 596 | if ($method == 'POST') { |
@@ -599,8 +599,8 @@ discard block |
||
| 599 | 599 | } |
| 600 | 600 | $options = array(); |
| 601 | 601 | $options['CURLOPT_HTTPHEADER'] = array( |
| 602 | - 'Content-Type: ' . $contenttype, |
|
| 603 | - 'Content-Length: ' . strlen($data), |
|
| 602 | + 'Content-Type: '.$contenttype, |
|
| 603 | + 'Content-Length: '.strlen($data), |
|
| 604 | 604 | 'Content-Language: en-US', |
| 605 | 605 | ); |
| 606 | 606 | |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | * @return void |
| 622 | 622 | */ |
| 623 | 623 | function bigbluebuttonbn_end_meeting_if_running($bigbluebuttonbn) { |
| 624 | - $meetingid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id; |
|
| 624 | + $meetingid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id; |
|
| 625 | 625 | if (bigbluebuttonbn_is_meeting_running($meetingid)) { |
| 626 | 626 | bigbluebuttonbn_end_meeting($meetingid, $bigbluebuttonbn->moderatorpass); |
| 627 | 627 | } |
@@ -641,9 +641,9 @@ discard block |
||
| 641 | 641 | if ($userroles) { |
| 642 | 642 | $where = ''; |
| 643 | 643 | foreach ($userroles as $userrole) { |
| 644 | - $where .= (empty($where) ? ' WHERE' : ' OR') . ' id=' . $userrole->roleid; |
|
| 644 | + $where .= (empty($where) ? ' WHERE' : ' OR').' id='.$userrole->roleid; |
|
| 645 | 645 | } |
| 646 | - $userroles = $DB->get_records_sql('SELECT * FROM {role}' . $where); |
|
| 646 | + $userroles = $DB->get_records_sql('SELECT * FROM {role}'.$where); |
|
| 647 | 647 | } |
| 648 | 648 | return $userroles; |
| 649 | 649 | } |
@@ -1010,9 +1010,9 @@ discard block |
||
| 1010 | 1010 | if ($voicebridge == 0) { |
| 1011 | 1011 | return true; |
| 1012 | 1012 | } |
| 1013 | - $select = 'voicebridge = ' . $voicebridge; |
|
| 1013 | + $select = 'voicebridge = '.$voicebridge; |
|
| 1014 | 1014 | if ($instance != 0) { |
| 1015 | - $select .= ' AND id <>' . $instance; |
|
| 1015 | + $select .= ' AND id <>'.$instance; |
|
| 1016 | 1016 | } |
| 1017 | 1017 | if (!$DB->get_records_select('bigbluebuttonbn', $select)) { |
| 1018 | 1018 | return true; |
@@ -1148,7 +1148,7 @@ discard block |
||
| 1148 | 1148 | function bigbluebuttonbn_generate_nonce() { |
| 1149 | 1149 | $mt = microtime(); |
| 1150 | 1150 | $rand = mt_rand(); |
| 1151 | - return md5($mt . $rand); |
|
| 1151 | + return md5($mt.$rand); |
|
| 1152 | 1152 | } |
| 1153 | 1153 | |
| 1154 | 1154 | /** |
@@ -1196,7 +1196,7 @@ discard block |
||
| 1196 | 1196 | $params['other'] = $options['other']; |
| 1197 | 1197 | } |
| 1198 | 1198 | $event = call_user_func_array( |
| 1199 | - '\mod_bigbluebuttonbn\event\\' . $type . '::create', |
|
| 1199 | + '\mod_bigbluebuttonbn\event\\'.$type.'::create', |
|
| 1200 | 1200 | array($params) |
| 1201 | 1201 | ); |
| 1202 | 1202 | $event->add_record_snapshot('course_modules', $cm); |
@@ -1354,7 +1354,7 @@ discard block |
||
| 1354 | 1354 | * @return object |
| 1355 | 1355 | */ |
| 1356 | 1356 | function bigbluebuttonbn_set_config_xml($meetingid, $configxml) { |
| 1357 | - $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url') . 'api/setConfigXML?'; |
|
| 1357 | + $urldefaultconfig = \mod_bigbluebuttonbn\locallib\config::get('server_url').'api/setConfigXML?'; |
|
| 1358 | 1358 | $configxmlparams = bigbluebuttonbn_set_config_xml_params($meetingid, $configxml); |
| 1359 | 1359 | $xml = bigbluebuttonbn_wrap_xml_load_file( |
| 1360 | 1360 | $urldefaultconfig, |
@@ -1374,9 +1374,9 @@ discard block |
||
| 1374 | 1374 | * @return string |
| 1375 | 1375 | */ |
| 1376 | 1376 | function bigbluebuttonbn_set_config_xml_params($meetingid, $configxml) { |
| 1377 | - $params = 'configXML=' . urlencode($configxml) . '&meetingID=' . urlencode($meetingid); |
|
| 1377 | + $params = 'configXML='.urlencode($configxml).'&meetingID='.urlencode($meetingid); |
|
| 1378 | 1378 | $sharedsecret = \mod_bigbluebuttonbn\locallib\config::get('shared_secret'); |
| 1379 | - $configxmlparams = $params . '&checksum=' . sha1('setConfigXML' . $params . $sharedsecret); |
|
| 1379 | + $configxmlparams = $params.'&checksum='.sha1('setConfigXML'.$params.$sharedsecret); |
|
| 1380 | 1380 | return $configxmlparams; |
| 1381 | 1381 | } |
| 1382 | 1382 | |
@@ -1482,7 +1482,7 @@ discard block |
||
| 1482 | 1482 | global $USER; |
| 1483 | 1483 | $starttime = $starttime - ($starttime % 1000); |
| 1484 | 1484 | // Set formatted date. |
| 1485 | - $dateformat = get_string('strftimerecentfull', 'langconfig') . ' %Z'; |
|
| 1485 | + $dateformat = get_string('strftimerecentfull', 'langconfig').' %Z'; |
|
| 1486 | 1486 | return userdate($starttime / 1000, $dateformat, usertimezone($USER->timezone)); |
| 1487 | 1487 | } |
| 1488 | 1488 | |
@@ -1530,11 +1530,11 @@ discard block |
||
| 1530 | 1530 | $actionbar .= bigbluebuttonbn_actionbar_render_button($recording, $buttonpayload); |
| 1531 | 1531 | } |
| 1532 | 1532 | $head = html_writer::start_tag('div', array( |
| 1533 | - 'id' => 'recording-actionbar-' . $recording['recordID'], |
|
| 1533 | + 'id' => 'recording-actionbar-'.$recording['recordID'], |
|
| 1534 | 1534 | 'data-recordingid' => $recording['recordID'], |
| 1535 | 1535 | 'data-meetingid' => $recording['meetingID'])); |
| 1536 | 1536 | $tail = html_writer::end_tag('div'); |
| 1537 | - return $head . $actionbar . $tail; |
|
| 1537 | + return $head.$actionbar.$tail; |
|
| 1538 | 1538 | } |
| 1539 | 1539 | |
| 1540 | 1540 | /** |
@@ -1598,7 +1598,7 @@ discard block |
||
| 1598 | 1598 | * @return string |
| 1599 | 1599 | */ |
| 1600 | 1600 | function bigbluebuttonbn_get_recording_data_row_preview($recording) { |
| 1601 | - $options = array('id' => 'preview-' . $recording['recordID']); |
|
| 1601 | + $options = array('id' => 'preview-'.$recording['recordID']); |
|
| 1602 | 1602 | if ($recording['published'] === 'false') { |
| 1603 | 1603 | $options['hidden'] = 'hidden'; |
| 1604 | 1604 | } |
@@ -1631,7 +1631,7 @@ discard block |
||
| 1631 | 1631 | $recordingpreview .= html_writer::start_tag('div', array('class' => '')); |
| 1632 | 1632 | $recordingpreview .= html_writer::empty_tag( |
| 1633 | 1633 | 'img', |
| 1634 | - array('src' => trim($image['url']) . '?' . time(), 'class' => 'recording-thumbnail pull-left') |
|
| 1634 | + array('src' => trim($image['url']).'?'.time(), 'class' => 'recording-thumbnail pull-left') |
|
| 1635 | 1635 | ); |
| 1636 | 1636 | $recordingpreview .= html_writer::end_tag('div'); |
| 1637 | 1637 | } |
@@ -1666,7 +1666,7 @@ discard block |
||
| 1666 | 1666 | if ($recording['published'] === 'false') { |
| 1667 | 1667 | $visibility = 'hidden '; |
| 1668 | 1668 | } |
| 1669 | - $id = 'playbacks-' . $recording['recordID']; |
|
| 1669 | + $id = 'playbacks-'.$recording['recordID']; |
|
| 1670 | 1670 | $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported, |
| 1671 | 1671 | 'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'], |
| 1672 | 1672 | 'title' => $title, $visibility => $visibility)); |
@@ -1692,13 +1692,13 @@ discard block |
||
| 1692 | 1692 | return ''; |
| 1693 | 1693 | } |
| 1694 | 1694 | $text = bigbluebuttonbn_get_recording_type_text($playback['type']); |
| 1695 | - $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id . |
|
| 1696 | - '&mid=' . $recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type']; |
|
| 1695 | + $href = $CFG->wwwroot.'/mod/bigbluebuttonbn/bbb_view.php?action=play&bn='.$bbbsession['bigbluebuttonbn']->id. |
|
| 1696 | + '&mid='.$recording['meetingID'].'&rid='.$recording['recordID'].'&rtype='.$playback['type']; |
|
| 1697 | 1697 | if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') { |
| 1698 | - $href .= '&href=' . urlencode(trim($playback['url'])); |
|
| 1698 | + $href .= '&href='.urlencode(trim($playback['url'])); |
|
| 1699 | 1699 | } |
| 1700 | 1700 | $linkattributes = array( |
| 1701 | - 'id' => 'recording-play-' . $playback['type'] . '-' . $recording['recordID'], |
|
| 1701 | + 'id' => 'recording-play-'.$playback['type'].'-'.$recording['recordID'], |
|
| 1702 | 1702 | 'class' => 'btn btn-sm btn-default', |
| 1703 | 1703 | 'onclick' => 'M.mod_bigbluebuttonbn.recordings.recordingPlay(this);', |
| 1704 | 1704 | 'data-action' => 'play', |
@@ -1711,7 +1711,7 @@ discard block |
||
| 1711 | 1711 | $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn'); |
| 1712 | 1712 | unset($linkattributes['data-href']); |
| 1713 | 1713 | } |
| 1714 | - return $OUTPUT->action_link('#', $text, null, $linkattributes) . ' '; |
|
| 1714 | + return $OUTPUT->action_link('#', $text, null, $linkattributes).' '; |
|
| 1715 | 1715 | } |
| 1716 | 1716 | |
| 1717 | 1717 | /** |
@@ -1724,7 +1724,7 @@ discard block |
||
| 1724 | 1724 | function bigbluebuttonbn_get_recording_type_text($playbacktype) { |
| 1725 | 1725 | // Check first if string exists, and if it does'nt just default to the capitalised version of the string. |
| 1726 | 1726 | $text = ucwords($playbacktype); |
| 1727 | - $typestringid = 'view_recording_format_' . $playbacktype; |
|
| 1727 | + $typestringid = 'view_recording_format_'.$playbacktype; |
|
| 1728 | 1728 | if (get_string_manager()->string_exists($typestringid, 'bigbluebuttonbn')) { |
| 1729 | 1729 | $text = get_string($typestringid, 'bigbluebuttonbn'); |
| 1730 | 1730 | } |
@@ -1754,7 +1754,7 @@ discard block |
||
| 1754 | 1754 | $validatedurls[$urlhost] = true; |
| 1755 | 1755 | $curlinfo = bigbluebuttonbn_wrap_xml_load_file_curl_request($url, 'HEAD'); |
| 1756 | 1756 | if (!isset($curlinfo['http_code']) || $curlinfo['http_code'] != 200) { |
| 1757 | - $error = "Resources hosted by " . $urlhost . " are unreachable. Server responded with code " . $curlinfo['http_code']; |
|
| 1757 | + $error = "Resources hosted by ".$urlhost." are unreachable. Server responded with code ".$curlinfo['http_code']; |
|
| 1758 | 1758 | debugging($error, DEBUG_DEVELOPER); |
| 1759 | 1759 | $validatedurls[$urlhost] = false; |
| 1760 | 1760 | } |
@@ -1845,12 +1845,12 @@ discard block |
||
| 1845 | 1845 | * @return string |
| 1846 | 1846 | */ |
| 1847 | 1847 | function bigbluebuttonbn_get_recording_data_row_text($recording, $text, $source, $data) { |
| 1848 | - $htmltext = '<span>' . htmlentities($text) . '</span>'; |
|
| 1848 | + $htmltext = '<span>'.htmlentities($text).'</span>'; |
|
| 1849 | 1849 | if (empty($data)) { |
| 1850 | 1850 | return $htmltext; |
| 1851 | 1851 | } |
| 1852 | - $target = $data['action'] . '-' . $data['target']; |
|
| 1853 | - $id = 'recording-' . $target . '-' . $data['recordingid']; |
|
| 1852 | + $target = $data['action'].'-'.$data['target']; |
|
| 1853 | + $id = 'recording-'.$target.'-'.$data['recordingid']; |
|
| 1854 | 1854 | $attributes = array('id' => $id, 'class' => 'quickeditlink col-md-20', |
| 1855 | 1855 | 'data-recordingid' => $data['recordingid'], 'data-meetingid' => $data['meetingid'], |
| 1856 | 1856 | 'data-target' => $data['target'], 'data-source' => $source); |
@@ -1858,7 +1858,7 @@ discard block |
||
| 1858 | 1858 | $tail = html_writer::end_tag('div'); |
| 1859 | 1859 | $payload = array('action' => $data['action'], 'tag' => $data['tag'], 'target' => $data['target']); |
| 1860 | 1860 | $htmllink = bigbluebuttonbn_actionbar_render_button($recording, $payload); |
| 1861 | - return $head . $htmltext . $htmllink . $tail; |
|
| 1861 | + return $head.$htmltext.$htmllink.$tail; |
|
| 1862 | 1862 | } |
| 1863 | 1863 | |
| 1864 | 1864 | /** |
@@ -1876,10 +1876,10 @@ discard block |
||
| 1876 | 1876 | } |
| 1877 | 1877 | $target = $data['action']; |
| 1878 | 1878 | if (isset($data['target'])) { |
| 1879 | - $target .= '-' . $data['target']; |
|
| 1879 | + $target .= '-'.$data['target']; |
|
| 1880 | 1880 | } |
| 1881 | - $id = 'recording-' . $target . '-' . $recording['recordID']; |
|
| 1882 | - $onclick = 'M.mod_bigbluebuttonbn.recordings.recording' . ucfirst($data['action']) . '(this); return false;'; |
|
| 1881 | + $id = 'recording-'.$target.'-'.$recording['recordID']; |
|
| 1882 | + $onclick = 'M.mod_bigbluebuttonbn.recordings.recording'.ucfirst($data['action']).'(this); return false;'; |
|
| 1883 | 1883 | if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recording_icons_enabled')) { |
| 1884 | 1884 | // With icon for $manageaction. |
| 1885 | 1885 | $iconattributes = array('id' => $id, 'class' => 'iconsmall'); |
@@ -1894,13 +1894,13 @@ discard block |
||
| 1894 | 1894 | ); |
| 1895 | 1895 | } |
| 1896 | 1896 | if (isset($data['disabled'])) { |
| 1897 | - $iconattributes['class'] .= ' fa-' . $data['disabled']; |
|
| 1897 | + $iconattributes['class'] .= ' fa-'.$data['disabled']; |
|
| 1898 | 1898 | $linkattributes['class'] = 'disabled'; |
| 1899 | 1899 | unset($linkattributes['onclick']); |
| 1900 | 1900 | } |
| 1901 | 1901 | $icon = new pix_icon( |
| 1902 | - 'i/' . $data['tag'], |
|
| 1903 | - get_string('view_recording_list_actionbar_' . $data['action'], 'bigbluebuttonbn'), |
|
| 1902 | + 'i/'.$data['tag'], |
|
| 1903 | + get_string('view_recording_list_actionbar_'.$data['action'], 'bigbluebuttonbn'), |
|
| 1904 | 1904 | 'moodle', |
| 1905 | 1905 | $iconattributes |
| 1906 | 1906 | ); |
@@ -1940,7 +1940,7 @@ discard block |
||
| 1940 | 1940 | if ($bbbsession['managerecordings']) { |
| 1941 | 1941 | $table->head[] = get_string('view_recording_actionbar', 'bigbluebuttonbn'); |
| 1942 | 1942 | $table->align[] = 'left'; |
| 1943 | - $table->size[] = (count($tools) * 40) . 'px'; |
|
| 1943 | + $table->size[] = (count($tools) * 40).'px'; |
|
| 1944 | 1944 | } |
| 1945 | 1945 | // Get the groups of the user. |
| 1946 | 1946 | $usergroups = groups_get_all_groups($bbbsession['course']->id, $bbbsession['userID']); |
@@ -1995,7 +1995,7 @@ discard block |
||
| 1995 | 1995 | */ |
| 1996 | 1996 | function bigbluebuttonbn_get_recording_table_row($bbbsession, $recording, $rowdata) { |
| 1997 | 1997 | $row = new html_table_row(); |
| 1998 | - $row->id = 'recording-tr-' . $recording['recordID']; |
|
| 1998 | + $row->id = 'recording-tr-'.$recording['recordID']; |
|
| 1999 | 1999 | $row->attributes['data-imported'] = 'false'; |
| 2000 | 2000 | $texthead = ''; |
| 2001 | 2001 | $texttail = ''; |
@@ -2007,13 +2007,13 @@ discard block |
||
| 2007 | 2007 | } |
| 2008 | 2008 | $rowdata->date_formatted = str_replace(' ', ' ', $rowdata->date_formatted); |
| 2009 | 2009 | $row->cells = array(); |
| 2010 | - $row->cells[] = $texthead . $rowdata->playback . $texttail; |
|
| 2011 | - $row->cells[] = $texthead . $rowdata->recording . $texttail; |
|
| 2012 | - $row->cells[] = $texthead . $rowdata->description . $texttail; |
|
| 2010 | + $row->cells[] = $texthead.$rowdata->playback.$texttail; |
|
| 2011 | + $row->cells[] = $texthead.$rowdata->recording.$texttail; |
|
| 2012 | + $row->cells[] = $texthead.$rowdata->description.$texttail; |
|
| 2013 | 2013 | if (bigbluebuttonbn_get_recording_data_preview_enabled($bbbsession)) { |
| 2014 | 2014 | $row->cells[] = $rowdata->preview; |
| 2015 | 2015 | } |
| 2016 | - $row->cells[] = $texthead . $rowdata->date_formatted . $texttail; |
|
| 2016 | + $row->cells[] = $texthead.$rowdata->date_formatted.$texttail; |
|
| 2017 | 2017 | $row->cells[] = $rowdata->duration_formatted; |
| 2018 | 2018 | if ($bbbsession['managerecordings']) { |
| 2019 | 2019 | $row->cells[] = $rowdata->actionbar; |
@@ -2143,7 +2143,7 @@ discard block |
||
| 2143 | 2143 | // Enqueue it. |
| 2144 | 2144 | \core\task\manager::queue_adhoc_task($task); |
| 2145 | 2145 | } catch (Exception $e) { |
| 2146 | - mtrace("Error while enqueuing completion_update_state task. " . (string) $e); |
|
| 2146 | + mtrace("Error while enqueuing completion_update_state task. ".(string) $e); |
|
| 2147 | 2147 | } |
| 2148 | 2148 | } |
| 2149 | 2149 | |
@@ -2209,7 +2209,7 @@ discard block |
||
| 2209 | 2209 | } |
| 2210 | 2210 | $coursesforselect = []; |
| 2211 | 2211 | foreach ($courses as $course) { |
| 2212 | - $coursesforselect[$course->id] = $course->fullname . " (" . $course->shortname . ")"; |
|
| 2212 | + $coursesforselect[$course->id] = $course->fullname." (".$course->shortname.")"; |
|
| 2213 | 2213 | } |
| 2214 | 2214 | return $coursesforselect; |
| 2215 | 2215 | } |
@@ -2307,17 +2307,17 @@ discard block |
||
| 2307 | 2307 | * @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2308 | 2308 | */ |
| 2309 | 2309 | function bigbluebuttonbn_get_recordings_deleted_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2310 | - $sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_DELETE . "' AND meta like '%has_recordings%' AND meta like '%true%'"; |
|
| 2310 | + $sql = "log = '".BIGBLUEBUTTONBN_LOG_EVENT_DELETE."' AND meta like '%has_recordings%' AND meta like '%true%'"; |
|
| 2311 | 2311 | if (empty($courseid)) { |
| 2312 | 2312 | $courseid = 0; |
| 2313 | 2313 | } |
| 2314 | 2314 | if (empty($bigbluebuttonbnid)) { |
| 2315 | - return $sql . " AND courseid = {$courseid}"; |
|
| 2315 | + return $sql." AND courseid = {$courseid}"; |
|
| 2316 | 2316 | } |
| 2317 | 2317 | if ($subset) { |
| 2318 | - return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
|
| 2318 | + return $sql." AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
|
| 2319 | 2319 | } |
| 2320 | - return $sql . " AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
|
| 2320 | + return $sql." AND courseid = {$courseid} AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
|
| 2321 | 2321 | } |
| 2322 | 2322 | |
| 2323 | 2323 | /** |
@@ -2331,17 +2331,17 @@ discard block |
||
| 2331 | 2331 | * @return string containing the sql used for getting the target bigbluebuttonbn instances |
| 2332 | 2332 | */ |
| 2333 | 2333 | function bigbluebuttonbn_get_recordings_imported_sql_select($courseid = 0, $bigbluebuttonbnid = null, $subset = true) { |
| 2334 | - $sql = "log = '" . BIGBLUEBUTTONBN_LOG_EVENT_IMPORT . "'"; |
|
| 2334 | + $sql = "log = '".BIGBLUEBUTTONBN_LOG_EVENT_IMPORT."'"; |
|
| 2335 | 2335 | if (empty($courseid)) { |
| 2336 | 2336 | $courseid = 0; |
| 2337 | 2337 | } |
| 2338 | 2338 | if (empty($bigbluebuttonbnid)) { |
| 2339 | - return $sql . " AND courseid = '{$courseid}'"; |
|
| 2339 | + return $sql." AND courseid = '{$courseid}'"; |
|
| 2340 | 2340 | } |
| 2341 | 2341 | if ($subset) { |
| 2342 | - return $sql . " AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
|
| 2342 | + return $sql." AND bigbluebuttonbnid = '{$bigbluebuttonbnid}'"; |
|
| 2343 | 2343 | } |
| 2344 | - return $sql . " AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
|
| 2344 | + return $sql." AND courseid = '{$courseid}' AND bigbluebuttonbnid <> '{$bigbluebuttonbnid}'"; |
|
| 2345 | 2345 | } |
| 2346 | 2346 | |
| 2347 | 2347 | /** |
@@ -2400,7 +2400,7 @@ discard block |
||
| 2400 | 2400 | } |
| 2401 | 2401 | // Prepare select for loading records based on existent bigbluebuttonbns. |
| 2402 | 2402 | $sql = 'SELECT DISTINCT meetingid, bigbluebuttonbnid FROM {bigbluebuttonbn_logs} WHERE '; |
| 2403 | - $sql .= '(bigbluebuttonbnid=' . implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)) . ')'; |
|
| 2403 | + $sql .= '(bigbluebuttonbnid='.implode(' OR bigbluebuttonbnid=', array_keys($bigbluebuttonbns)).')'; |
|
| 2404 | 2404 | // Include only Create events and exclude those with record not true. |
| 2405 | 2405 | $sql .= ' AND log = ? AND meta LIKE ? AND meta LIKE ?'; |
| 2406 | 2406 | // Execute select for loading records based on existent bigbluebuttonbns. |
@@ -2585,8 +2585,8 @@ discard block |
||
| 2585 | 2585 | require_once($CFG->dirroot.'/calendar/lib.php'); |
| 2586 | 2586 | $activitytime = ''; |
| 2587 | 2587 | if ($time) { |
| 2588 | - $activitytime = calendar_day_representation($time) . ' ' . |
|
| 2589 | - get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn') . ' ' . |
|
| 2588 | + $activitytime = calendar_day_representation($time).' '. |
|
| 2589 | + get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '. |
|
| 2590 | 2590 | calendar_time_representation($time); |
| 2591 | 2591 | } |
| 2592 | 2592 | return $activitytime; |
@@ -3347,16 +3347,16 @@ discard block |
||
| 3347 | 3347 | return $output; |
| 3348 | 3348 | } |
| 3349 | 3349 | $output .= $OUTPUT->box_start( |
| 3350 | - 'box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in', |
|
| 3350 | + 'box boxalignleft adminerror alert alert-'.$type.' alert-block fade in', |
|
| 3351 | 3351 | 'bigbluebuttonbn_view_general_warning' |
| 3352 | - ) . "\n"; |
|
| 3353 | - $output .= ' ' . $message . "\n"; |
|
| 3354 | - $output .= ' <div class="singlebutton pull-right">' . "\n"; |
|
| 3352 | + )."\n"; |
|
| 3353 | + $output .= ' '.$message."\n"; |
|
| 3354 | + $output .= ' <div class="singlebutton pull-right">'."\n"; |
|
| 3355 | 3355 | if (!empty($href)) { |
| 3356 | 3356 | $output .= bigbluebuttonbn_render_warning_button($href, $text, $class); |
| 3357 | 3357 | } |
| 3358 | - $output .= ' </div>' . "\n"; |
|
| 3359 | - $output .= $OUTPUT->box_end() . "\n"; |
|
| 3358 | + $output .= ' </div>'."\n"; |
|
| 3359 | + $output .= $OUTPUT->box_end()."\n"; |
|
| 3360 | 3360 | return $output; |
| 3361 | 3361 | } |
| 3362 | 3362 | |
@@ -3380,11 +3380,11 @@ discard block |
||
| 3380 | 3380 | if ($class == '') { |
| 3381 | 3381 | $class = 'btn btn-secondary'; |
| 3382 | 3382 | } |
| 3383 | - $output = ' <form method="post" action="' . $href . '" class="form-inline">' . "\n"; |
|
| 3384 | - $output .= ' <button type="submit" class="' . $class . '"' . "\n"; |
|
| 3385 | - $output .= ' title="' . $title . '"' . "\n"; |
|
| 3386 | - $output .= ' >' . $text . '</button>' . "\n"; |
|
| 3387 | - $output .= ' </form>' . "\n"; |
|
| 3383 | + $output = ' <form method="post" action="'.$href.'" class="form-inline">'."\n"; |
|
| 3384 | + $output .= ' <button type="submit" class="'.$class.'"'."\n"; |
|
| 3385 | + $output .= ' title="'.$title.'"'."\n"; |
|
| 3386 | + $output .= ' >'.$text.'</button>'."\n"; |
|
| 3387 | + $output .= ' </form>'."\n"; |
|
| 3388 | 3388 | return $output; |
| 3389 | 3389 | } |
| 3390 | 3390 | |
@@ -3448,7 +3448,7 @@ discard block |
||
| 3448 | 3448 | function bigbluebuttonbn_user_can_join_meeting($bigbluebuttonbn, $mid = null, $userid = null) { |
| 3449 | 3449 | // By default, use a meetingid without groups. |
| 3450 | 3450 | if (empty($mid)) { |
| 3451 | - $mid = $bigbluebuttonbn->meetingid . '-' . $bigbluebuttonbn->course . '-' . $bigbluebuttonbn->id; |
|
| 3451 | + $mid = $bigbluebuttonbn->meetingid.'-'.$bigbluebuttonbn->course.'-'.$bigbluebuttonbn->id; |
|
| 3452 | 3452 | } |
| 3453 | 3453 | // When meeting is running, all authorized users can join right in. |
| 3454 | 3454 | if (bigbluebuttonbn_is_meeting_running($mid)) { |
@@ -3517,7 +3517,7 @@ discard block |
||
| 3517 | 3517 | * @return boolean |
| 3518 | 3518 | */ |
| 3519 | 3519 | function bigbluebuttonbn_has_html5_client() { |
| 3520 | - $checkurl = \mod_bigbluebuttonbn\locallib\bigbluebutton::root() . "html5client/check"; |
|
| 3520 | + $checkurl = \mod_bigbluebuttonbn\locallib\bigbluebutton::root()."html5client/check"; |
|
| 3521 | 3521 | $curlinfo = bigbluebuttonbn_wrap_xml_load_file_curl_request($checkurl, 'HEAD'); |
| 3522 | 3522 | return (isset($curlinfo['http_code']) && $curlinfo['http_code'] == 200); |
| 3523 | 3523 | } |
@@ -3617,7 +3617,7 @@ discard block |
||
| 3617 | 3617 | if ((boolean) \mod_bigbluebuttonbn\locallib\config::get('recordingstatus_enabled')) { |
| 3618 | 3618 | $metadata["bn-recording-status"] = json_encode( |
| 3619 | 3619 | array( |
| 3620 | - 'email' => array('"' . fullname($USER) . '" <' . $USER->email . '>'), |
|
| 3620 | + 'email' => array('"'.fullname($USER).'" <'.$USER->email.'>'), |
|
| 3621 | 3621 | 'context' => $bbbsession['bigbluebuttonbnURL'], |
| 3622 | 3622 | ) |
| 3623 | 3623 | ); |