Skip to content

Commit

Permalink
use default logout to activity page
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 28, 2024
1 parent 1789e24 commit 2060515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/external/mod_plugnmeet_create_room.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function create_room_parameters() {
* @throws dml_exception
*/
public static function create_room($instanceid, $join, $isadmin) {
global $DB, $USER;
global $DB, $USER, $PAGE;

$result = [
'status' => false,
Expand Down Expand Up @@ -94,6 +94,7 @@ public static function create_room($instanceid, $join, $isadmin) {

$connect = new PlugNmeetConnect($config);
try {
$logout_url = $PAGE->url->get_scheme() . "://".$PAGE->url->get_host() . "/mod/plugnmeet/view.php?id=" . $cm->id;
$extradata = json_encode(array(
"platform" => "moodle",
"php-version" => phpversion(),
Expand All @@ -110,7 +111,7 @@ public static function create_room($instanceid, $join, $isadmin) {
"",
$roommetadata,
0,
"",
$logout_url,
$extradata);

$result['status'] = $res->getStatus();
Expand Down

0 comments on commit 2060515

Please sign in to comment.