@@ -54,14 +54,14 @@ |
||
54 | 54 | static public function encode_content_links($content) { |
55 | 55 | global $CFG; |
56 | 56 | |
57 | - $base = preg_quote($CFG->wwwroot.'/mod/bigbluebuttonbn','#'); |
|
57 | + $base = preg_quote($CFG->wwwroot . '/mod/bigbluebuttonbn', '#'); |
|
58 | 58 | |
59 | 59 | //Link to the list of bigbluebuttonbns |
60 | - $pattern = "#(".$base."\/index.php\?id\=)([0-9]+)#"; |
|
60 | + $pattern = "#(" . $base . "\/index.php\?id\=)([0-9]+)#"; |
|
61 | 61 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNINDEX*$2@$', $content); |
62 | 62 | |
63 | 63 | //Link to bigbluebuttonbn view by moduleid |
64 | - $pattern = "#(".$base."\/view.php\?id\=)([0-9]+)#"; |
|
64 | + $pattern = "#(" . $base . "\/view.php\?id\=)([0-9]+)#"; |
|
65 | 65 | $content = preg_replace($pattern, '$@BIGBLUEBUTTONBNVIEWBYID*$2@$', $content); |
66 | 66 | |
67 | 67 | return $content; |
@@ -36,11 +36,11 @@ |
||
36 | 36 | |
37 | 37 | // Define each element separated |
38 | 38 | $bigbluebuttonbn = new backup_nested_element('bigbluebuttonbn', array('id'), array( |
39 | - 'course', 'name', 'intro', 'introformat', 'meetingid', |
|
40 | - 'moderatorpass', 'viewerpass', 'wait', 'record', 'tagging', |
|
41 | - 'welcome', 'voicebridge', 'openingtime', 'closingtime', |
|
42 | - 'timecreated', 'timemodified', 'presentation', 'participants', |
|
43 | - 'userlimit')); |
|
39 | + 'course', 'name', 'intro', 'introformat', 'meetingid', |
|
40 | + 'moderatorpass', 'viewerpass', 'wait', 'record', 'tagging', |
|
41 | + 'welcome', 'voicebridge', 'openingtime', 'closingtime', |
|
42 | + 'timecreated', 'timemodified', 'presentation', 'participants', |
|
43 | + 'userlimit')); |
|
44 | 44 | |
45 | 45 | $logs = new backup_nested_element('logs'); |
46 | 46 |
@@ -304,9 +304,9 @@ |
||
304 | 304 | $string['event_meeting_left'] = 'BigBlueButtonBN meeting left'; |
305 | 305 | $string['event_meeting_left_description'] = 'The user with id \'{$a->userid}\' has left a bigbluebutton meeting for the bigbluebuttonbn activity with id \'{$a->bigbluebuttonbnid}\' for the course id \'$this->courseid\'.'; |
306 | 306 | $string['event_recording_deleted'] = 'Recording deleted'; |
307 | -$string['event_recording_deleted_description'] = 'The user with id \'{$a->userid}\' has deleted a recording with id \'{$a->recordingid}\' from the course id \'{$a->courseid}\'.';; |
|
307 | +$string['event_recording_deleted_description'] = 'The user with id \'{$a->userid}\' has deleted a recording with id \'{$a->recordingid}\' from the course id \'{$a->courseid}\'.'; ; |
|
308 | 308 | $string['event_recording_imported'] = 'Recording imported'; |
309 | -$string['event_recording_imported_description'] = 'The user with id \'{$a->userid}\' has imported a recording with id \'{$a->recordingid}\' into the course id \'{$a->courseid}\'.';; |
|
309 | +$string['event_recording_imported_description'] = 'The user with id \'{$a->userid}\' has imported a recording with id \'{$a->recordingid}\' into the course id \'{$a->courseid}\'.'; ; |
|
310 | 310 | $string['event_recording_published'] = 'Recording published'; |
311 | 311 | $string['event_recording_published_description'] = 'The user with id \'{$a->userid}\' has published a recording with id \'{$a->recordingid}\' in the course id \'{$a->courseid\'}.'; |
312 | 312 | $string['event_recording_unpublished'] = 'Recording unpublished'; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
42 | 42 | return get_string('event_meeting_ended_description', 'bigbluebuttonbn', $a); |
43 | 43 | } |
44 | 44 |
@@ -38,8 +38,8 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
43 | 43 | return get_string('event_recording_published_description', 'bigbluebuttonbn', $a); |
44 | 44 | } |
45 | 45 |
@@ -38,8 +38,8 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
43 | 43 | return get_string('event_recording_published_description', 'bigbluebuttonbn', $a); |
44 | 44 | } |
45 | 45 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $a = (object) array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
41 | + $a = (object)array('userid' => $this->userid, 'bigbluebuttonbnid' => $this->objectid, 'courseid' => $this->contextinstanceid); |
|
42 | 42 | return get_string('event_meeting_ended_description', 'bigbluebuttonbn', $a); |
43 | 43 | } |
44 | 44 |
@@ -38,8 +38,8 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
43 | 43 | return get_string('event_recording_published_description', 'bigbluebuttonbn', $a); |
44 | 44 | } |
45 | 45 |
@@ -38,8 +38,8 @@ |
||
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | public function get_description() { |
41 | - $rid = isset($this->other['rid'])? $this->other['rid']: ''; |
|
42 | - $a = (object) array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
41 | + $rid = isset($this->other['rid']) ? $this->other['rid'] : ''; |
|
42 | + $a = (object)array('userid' => $this->userid, 'recordingid' => $rid, 'courseid' => $this->contextinstanceid); |
|
43 | 43 | return get_string('event_recording_published_description', 'bigbluebuttonbn', $a); |
44 | 44 | } |
45 | 45 |