Skip to content

Commit 50e43fd

Browse files
committed
settings: use the provided admin_settingpage->name
1 parent ba644f4 commit 50e43fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
require_once($CFG->dirroot . '/mod/zoom/locallib.php');
3333

3434
// Test whether connection works and display result to user.
35-
if (!CLI_SCRIPT && $PAGE->url == $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=modsettingzoom') {
35+
if (!CLI_SCRIPT && $PAGE->url == $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=' . $settings->name) {
3636
$status = 'connectionfailed';
3737
$notifyclass = notification::NOTIFY_ERROR;
3838
$errormessage = '';

0 commit comments

Comments
 (0)