mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
mnet: check for the _right_ varname before warning about mnet being off
This commit is contained in:
parent
79b84c93fb
commit
7580ce94ef
@ -124,7 +124,7 @@ if ($form = data_submitted() and confirm_sesskey()) {
|
||||
print_box(get_string('ssoacldescr','mnet'));
|
||||
// Are the needed bits enabled?
|
||||
$warn = '';
|
||||
if (empty($CFG->mnet_mode) || $CFG->mnet_mode !== 'strict') {
|
||||
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
|
||||
$warn = '<p>' . get_string('mnetdisabled','mnet') .'</p>';
|
||||
}
|
||||
if (empty($CFG->auth_plugins_enabled)) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
admin_externalpage_print_header($adminroot);
|
||||
|
||||
if (empty($CFG->mnet_mode) || $CFG->mnet_mode !== 'strict') {
|
||||
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
|
||||
print_box(get_string('mnetdisabled','mnet'));
|
||||
}
|
||||
?>
|
||||
|
@ -10,7 +10,7 @@ if (!isset ($config->auto_add_remote_users)) {
|
||||
|
||||
$yesno = array(get_string('no'), get_string('yes'));
|
||||
|
||||
if (empty($CFG->mnet_mode) || $CFG->mnet_mode !== 'strict') {
|
||||
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
|
||||
print_box(get_string('mnetdisabled','mnet'));
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (empty($CFG->mnet_mode) || $CFG->mnet_mode !== 'strict') {
|
||||
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
|
||||
print_box(get_string('mnetdisabled','mnet'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user