mnet: check for the _right_ varname before warning about mnet being off

This commit is contained in:
martinlanghoff 2007-01-18 03:16:55 +00:00
parent 79b84c93fb
commit 7580ce94ef
4 changed files with 4 additions and 4 deletions

View File

@ -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)) {

View File

@ -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'));
}
?>

View File

@ -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'));
}

View File

@ -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'));
}