Redirect to listing if student wants to start a video but there is no running meeting - refs #5802 BT#5272

skala
Yannick Warnier 12 years ago
parent a5aac9ff14
commit 2962b0e7e4
  1. 6
      plugin/bbb/start.php

@ -36,6 +36,10 @@ if ($bbb->plugin_enabled) {
$url = $bbb->create_meeting($meeting_params); $url = $bbb->create_meeting($meeting_params);
header('location: '.$url); header('location: '.$url);
exit; exit;
} else {
$url = 'listing.php';
header('location: '.$url);
exit;
} }
} }
} else { } else {
@ -50,4 +54,4 @@ if ($bbb->plugin_enabled) {
$message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning'); $message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning');
} }
$tpl->assign('message', $message); $tpl->assign('message', $message);
$tpl->display_one_col_template(); $tpl->display_one_col_template();

Loading…
Cancel
Save