From 7580ce94efa72dfcde11edb1e85fc9f141b3414e Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 18 Jan 2007 03:16:55 +0000 Subject: [PATCH] mnet: check for the _right_ varname before warning about mnet being off --- admin/mnet/access_control.php | 2 +- admin/mnet/peers.html | 2 +- auth/mnet/config.html | 2 +- enrol/mnet/config.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/mnet/access_control.php b/admin/mnet/access_control.php index b2acb10b864..debb9f04ce5 100644 --- a/admin/mnet/access_control.php +++ b/admin/mnet/access_control.php @@ -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 = '

' . get_string('mnetdisabled','mnet') .'

'; } if (empty($CFG->auth_plugins_enabled)) { diff --git a/admin/mnet/peers.html b/admin/mnet/peers.html index 67326625f7b..56a311d34b9 100644 --- a/admin/mnet/peers.html +++ b/admin/mnet/peers.html @@ -1,7 +1,7 @@ mnet_mode) || $CFG->mnet_mode !== 'strict') { +if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') { print_box(get_string('mnetdisabled','mnet')); } ?> diff --git a/auth/mnet/config.html b/auth/mnet/config.html index 8e6930d7656..9848d9489d3 100644 --- a/auth/mnet/config.html +++ b/auth/mnet/config.html @@ -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')); } diff --git a/enrol/mnet/config.html b/enrol/mnet/config.html index d939e5f8c65..d6306593b74 100644 --- a/enrol/mnet/config.html +++ b/enrol/mnet/config.html @@ -1,6 +1,6 @@ mnet_mode) || $CFG->mnet_mode !== 'strict') { +if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') { print_box(get_string('mnetdisabled','mnet')); }