@@ -439,26 +439,26 @@ discard block |
||
439 | 439 | return array( |
440 | 440 | 'status' => false, |
441 | 441 | 'message' => get_string('view_recording_publish_link_deleted', 'bigbluebuttonbn') |
442 | - ); |
|
442 | + ); |
|
443 | 443 | } |
444 | 444 | if ($realrecordings[$params['id']]['published'] !== 'true') { |
445 | 445 | return array( |
446 | 446 | 'status' => false, |
447 | 447 | 'message' => get_string('view_recording_publish_link_not_published', 'bigbluebuttonbn') |
448 | - ); |
|
448 | + ); |
|
449 | 449 | } |
450 | 450 | return array( |
451 | 451 | 'status' => bigbluebuttonbn_publish_recording_imported( |
452 | 452 | $recordings[$params['id']]['imported'], true |
453 | 453 | ) |
454 | - ); |
|
454 | + ); |
|
455 | 455 | } |
456 | 456 | // As the recordingid was not identified as imported recording link, execute actual publish. |
457 | 457 | return array( |
458 | 458 | 'status' => bigbluebuttonbn_publish_recordings( |
459 | 459 | $params['id'], 'true' |
460 | 460 | ) |
461 | - ); |
|
461 | + ); |
|
462 | 462 | } |
463 | 463 | |
464 | 464 | /** |
@@ -479,26 +479,26 @@ discard block |
||
479 | 479 | return array( |
480 | 480 | 'status' => false, |
481 | 481 | 'message' => get_string('view_recording_unprotect_link_deleted', 'bigbluebuttonbn') |
482 | - ); |
|
482 | + ); |
|
483 | 483 | } |
484 | 484 | if ($realrecordings[$params['id']]['protected'] === 'true') { |
485 | 485 | return array( |
486 | 486 | 'status' => false, |
487 | 487 | 'message' => get_string('view_recording_unprotect_link_not_unprotected', 'bigbluebuttonbn') |
488 | - ); |
|
488 | + ); |
|
489 | 489 | } |
490 | 490 | return array( |
491 | 491 | 'status' => bigbluebuttonbn_protect_recording_imported( |
492 | 492 | $recordings[$params['id']]['imported'], false |
493 | 493 | ) |
494 | - ); |
|
494 | + ); |
|
495 | 495 | } |
496 | 496 | // As the recordingid was not identified as imported recording link, execute actual uprotect. |
497 | 497 | return array( |
498 | 498 | 'status' => bigbluebuttonbn_update_recordings( |
499 | 499 | $params['id'], array('protect' => 'false') |
500 | 500 | ) |
501 | - ); |
|
501 | + ); |
|
502 | 502 | } |
503 | 503 | |
504 | 504 | /** |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | 'status' => bigbluebuttonbn_publish_recording_imported( |
518 | 518 | $recordings[$params['id']]['imported'], false |
519 | 519 | ) |
520 | - ); |
|
520 | + ); |
|
521 | 521 | } |
522 | 522 | // As the recordingid was not identified as imported recording link, execute unpublish on a real recording. |
523 | 523 | // First: Unpublish imported links associated to the recording. |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | 'status' => bigbluebuttonbn_publish_recordings( |
536 | 536 | $params['id'], 'false' |
537 | 537 | ) |
538 | - ); |
|
538 | + ); |
|
539 | 539 | } |
540 | 540 | |
541 | 541 | /** |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | 'status' => bigbluebuttonbn_protect_recording_imported( |
555 | 555 | $recordings[$params['id']]['imported'], true |
556 | 556 | ) |
557 | - ); |
|
557 | + ); |
|
558 | 558 | } |
559 | 559 | // As the recordingid was not identified as imported recording link, execute protect on a real recording. |
560 | 560 | // First: Protect imported links associated to the recording. |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | 'status' => bigbluebuttonbn_update_recordings( |
573 | 573 | $params['id'], array('protect' => 'true') |
574 | 574 | ) |
575 | - ); |
|
575 | + ); |
|
576 | 576 | } |
577 | 577 | |
578 | 578 | /** |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | 'status' => bigbluebuttonbn_delete_recording_imported( |
592 | 592 | $recordings[$params['id']]['imported'] |
593 | 593 | ) |
594 | - ); |
|
594 | + ); |
|
595 | 595 | } |
596 | 596 | // As the recordingid was not identified as imported recording link, execute delete on a real recording. |
597 | 597 | // First: Delete imported links associated to the recording. |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | // Second: Execute the actual delete. |
606 | 606 | return array( |
607 | 607 | 'status' => bigbluebuttonbn_delete_recordings($params['id']) |
608 | - ); |
|
608 | + ); |
|
609 | 609 | } |
610 | 610 | |
611 | 611 | /** |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | 'status' => bigbluebuttonbn_update_recording_imported( |
624 | 624 | $recordings[$params['id']]['imported'], json_decode($params['meta'], true) |
625 | 625 | ) |
626 | - ); |
|
626 | + ); |
|
627 | 627 | } |
628 | 628 | |
629 | 629 | // As the recordingid was not identified as imported recording link, execute update on a real recording. |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | 'status' => bigbluebuttonbn_update_recordings( |
634 | 634 | $params['id'], json_decode($params['meta']) |
635 | 635 | ) |
636 | - ); |
|
636 | + ); |
|
637 | 637 | } |
638 | 638 | |
639 | 639 | /** |
@@ -665,14 +665,14 @@ discard block |
||
665 | 665 | } |
666 | 666 | // Sends the messages. |
667 | 667 | try { |
668 | - //That if was for trying to workaround the several emails sent for one record ready |
|
669 | - if(bigbluebuttonbn_get_count_callback_event_log($decodedparameters->record_id) == 0){ |
|
668 | + //That if was for trying to workaround the several emails sent for one record ready |
|
669 | + if(bigbluebuttonbn_get_count_callback_event_log($decodedparameters->record_id) == 0){ |
|
670 | 670 | bigbluebuttonbn_send_notification_recording_ready($bigbluebuttonbn); |
671 | - } |
|
672 | - $overrides = array('meetingid' => $bigbluebuttonbn->meetingid); |
|
673 | - $meta = '{"recordID":'.$decodedparameters->record_id.'}'; |
|
674 | - bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTON_LOG_EVENT_CALLBACK, $overrides, $meta); |
|
675 | - header('HTTP/1.0 202 Accepted'); |
|
671 | + } |
|
672 | + $overrides = array('meetingid' => $bigbluebuttonbn->meetingid); |
|
673 | + $meta = '{"recordID":'.$decodedparameters->record_id.'}'; |
|
674 | + bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTON_LOG_EVENT_CALLBACK, $overrides, $meta); |
|
675 | + header('HTTP/1.0 202 Accepted'); |
|
676 | 676 | } catch (Exception $e) { |
677 | 677 | $error = 'Caught exception: '.$e->getMessage(); |
678 | 678 | header('HTTP/1.0 503 Service Unavailable. '.$error); |
@@ -806,11 +806,11 @@ discard block |
||
806 | 806 | $params['recording_ready'] = [ |
807 | 807 | 'bigbluebuttonbn' => 'An id for the bigbluebuttonbn instance should be included.', |
808 | 808 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
809 | - ]; |
|
809 | + ]; |
|
810 | 810 | $params['live_session_events'] = [ |
811 | 811 | 'bigbluebuttonbn' => 'An id for the bigbluebuttonbn instance should be included.', |
812 | 812 | 'signed_parameters' => 'A JWT encoded string must be included as [signed_parameters].' |
813 | - ]; |
|
813 | + ]; |
|
814 | 814 | return $params; |
815 | 815 | } |
816 | 816 | |
@@ -821,9 +821,9 @@ discard block |
||
821 | 821 | */ |
822 | 822 | function bigbluebuttonbn_broker_required_parameters_default($id) { |
823 | 823 | return [ |
824 | - 'id' => "The {$id} must be specified.", |
|
825 | - 'callback' => 'This call must include a javascript callback.' |
|
826 | - ]; |
|
824 | + 'id' => "The {$id} must be specified.", |
|
825 | + 'callback' => 'This call must include a javascript callback.' |
|
826 | + ]; |
|
827 | 827 | } |
828 | 828 | |
829 | 829 | /** |