Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename custom_record to custom_bbb_record and override welcome messag…

…e when appropriate

I'm re-applying this code after reviewing the 0.1.1 version of bbb-lti. From my testing, an LTI's custom welcome message is currently being ignored.
  • Loading branch information...
commit 8908657b6850afc11c610d787e26bd6d3abe53ab 1 parent 091ba72
@kishba kishba authored
View
6 bbb-lti/grails-app/controllers/ToolController.groovy
@@ -235,6 +235,12 @@ class ToolController {
log.debug "Locale has been set to " + locale
String welcome = message(code: "bigbluebutton.welcome", args: ["\"{0}\"", "\"{1}\""])
log.debug "Localized default welcome message: [" + welcome + "]"
+
+ // Check for [custom_]welcome parameter being passed from the LTI
+ if (params.get(Parameter.CUSTOM_BBB_WELCOME) != null) {
+ welcome = params.get(Parameter.CUSTOM_BBB_WELCOME)
+ log.debug "Overriding default welcome message with: [" + welcome + "]"
+ }
String destinationURL = bigbluebuttonService.getJoinURL(params, welcome, ltiService.mode)
log.debug "redirecting to " + destinationURL
View
2  bbb-lti/src/java/org/bigbluebutton/lti/Parameter.java
@@ -52,7 +52,7 @@
public static final String CUSTOM_BBB_RECORD = "custom_bbb_record";
public static final String CUSTOM_BBB_VOICEBRIDGE = "custom_bbb_voicebridge";
public static final String CUSTOM_BBB_DURATION = "custom_bbb_duration";
- public static final String CUSTOM_WELCOME = "custom_bbb_welcome";
+ public static final String CUSTOM_BBB_WELCOME = "custom_bbb_welcome";
///BigBlueButton internal parameters
public static final String BBB_RECORDING_ID = "bbb_recording_id";
Please sign in to comment.
Something went wrong with that request. Please try again.