From 6d5aa15b8d6edb1d2c57a66151722d0c650da947 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Fri, 29 Nov 2013 14:12:09 -0800 Subject: [PATCH] MDL-43142 mnet: fixed typo in variable passed to get_string --- admin/mnet/access_control.php | 8 +++++--- lang/en/mnet.php | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/mnet/access_control.php b/admin/mnet/access_control.php index 1c0470e18f7..5cc32abdb26 100644 --- a/admin/mnet/access_control.php +++ b/admin/mnet/access_control.php @@ -65,9 +65,11 @@ if (!empty($action) and confirm_sesskey()) { if (mnet_update_sso_access_control($idrec->username, $idrec->mnet_host_id, $accessctrl)) { if ($accessctrl == 'allow') { - redirect('access_control.php', get_string('ssl_acl_allow','mnet', array('uset'=>$idrec->username, 'host'=>$mnethosts[$idrec->mnet_host_id]))); - } elseif ($accessctrl == 'deny') { - redirect('access_control.php', get_string('ssl_acl_deny','mnet', array('user'=>$idrec->username, 'host'=>$mnethosts[$idrec->mnet_host_id]))); + redirect('access_control.php', get_string('ssl_acl_allow','mnet', array('user' => $idrec->username, + 'host' => $mnethosts[$idrec->mnet_host_id]))); + } else if ($accessctrl == 'deny') { + redirect('access_control.php', get_string('ssl_acl_deny','mnet', array('user' => $idrec->username, + 'host' => $mnethosts[$idrec->mnet_host_id]))); } } break; diff --git a/lang/en/mnet.php b/lang/en/mnet.php index 36cd958e370..26966ec75bb 100644 --- a/lang/en/mnet.php +++ b/lang/en/mnet.php @@ -213,8 +213,8 @@ $string['serviceswesubscribeto'] = 'Services on {$a} that we subscribe to.'; $string['settings'] = 'Settings'; $string['showlocal'] = 'Show local users'; $string['showremote'] = 'Show remote users'; -$string['ssl_acl_allow'] = 'SSO ACL: Allow user {$a->user} from {$a->host}'; -$string['ssl_acl_deny'] = 'SSO ACL: Deny user {$a->user} from {$a->host}'; +$string['ssl_acl_allow'] = 'SSO ACL: Allow user \'{$a->user}\' from \'{$a->host}\''; +$string['ssl_acl_deny'] = 'SSO ACL: Deny user \'{$a->user}\' from \'{$a->host}\''; $string['ssoaccesscontrol'] = 'SSO access control'; $string['ssoacldescr'] = 'Use this page to grant/deny access to specific users from remote MNet hosts. This is functional when you are offering SSO services to remote users. To control your local users\' ability to roam to other MNet hosts, use the roles system to grant them the mnetlogintoremote capability.'; $string['ssoaclneeds'] = 'For this functionality to work, you must have Networking on, plus the MNet authentication plugin enabled.';