Skip to content

Commit c941a98

Browse files
authored
Merge pull request #695 from ncstate-delta/fix/duplicate-recording-messages
recording: fix duplicate string syntax
2 parents 8b0c671 + be460e0 commit c941a98

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

loadrecording.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
$recordingid = required_param('recordingid', PARAM_INT);
3131

3232
if (!get_config('zoom', 'viewrecordings')) {
33-
throw new moodle_exception('recordingnotvisible', 'mod_zoom', get_string('recordingnotvisible', 'zoom'));
33+
throw new moodle_exception('recordingnotvisible', 'mod_zoom');
3434
}
3535

3636
[$course, $cm, $zoom] = zoom_get_instance_setup();
@@ -49,7 +49,7 @@
4949
];
5050
$rec = $DB->get_record('zoom_meeting_recordings', $params);
5151
if (empty($rec)) {
52-
throw new moodle_exception('recordingnotfound', 'mod_zoom', '', get_string('recordingnotfound', 'zoom'));
52+
throw new moodle_exception('recordingnotfound', 'mod_zoom');
5353
}
5454

5555
$params = ['recordingsid' => $rec->id, 'userid' => $USER->id];

recordings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
require_login($course, true, $cm);
3333

3434
if (!get_config('zoom', 'viewrecordings')) {
35-
throw new moodle_exception('recordingnotvisible', 'mod_zoom', get_string('recordingnotvisible', 'zoom'));
35+
throw new moodle_exception('recordingnotvisible', 'mod_zoom');
3636
}
3737

3838
$context = context_module::instance($cm->id);

showrecording.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$showrecording = required_param('showrecording', PARAM_INT);
3333

3434
if (!get_config('zoom', 'viewrecordings')) {
35-
throw new moodle_exception('recordingnotvisible', 'mod_zoom', get_string('recordingnotvisible', 'zoom'));
35+
throw new moodle_exception('recordingnotvisible', 'mod_zoom');
3636
}
3737

3838
[$course, $cm, $zoom] = zoom_get_instance_setup();
@@ -58,7 +58,7 @@
5858
]
5959
);
6060
if (empty($recordings)) {
61-
throw new moodle_exception('recordingnotfound', 'mod_zoom', '', get_string('recordingnotfound', 'zoom'));
61+
throw new moodle_exception('recordingnotfound', 'mod_zoom');
6262
}
6363

6464
$now = time();

0 commit comments

Comments
 (0)