diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php
index 09709db3ea0..9e839fbeca9 100644
--- a/enrol/authorize/locallib.php
+++ b/enrol/authorize/locallib.php
@@ -415,8 +415,8 @@ function authorize_print_order($orderid)
}
$a = new stdClass;
$a->upto = $upto;
- $extrahtml = get_string('howmuch', 'enrol_authorize') .
- ' ' .
+ $extrahtml = '' .
+ ' ' .
get_string('canbecredit', 'enrol_authorize', $a) . '
';
$table->data[] = array("$strs->confirm:",
authorize_print_action_button($orderid, ORDER_REFUND, 0, true, $authstrs->unenrolstudent, $strs->no, $extrahtml));
diff --git a/enrol/ldap/lang/en/enrol_ldap.php b/enrol/ldap/lang/en/enrol_ldap.php
index df3b34fc119..a54e35e71c9 100644
--- a/enrol/ldap/lang/en/enrol_ldap.php
+++ b/enrol/ldap/lang/en/enrol_ldap.php
@@ -93,6 +93,8 @@ $string['pluginname'] = 'LDAP enrolments';
$string['pluginname_desc'] = '
You can use an LDAP server to control your enrolments. It is assumed your LDAP tree contains groups that map to the courses, and that each of those groups/courses will have membership entries to map to students.
It is assumed that courses are defined as groups in LDAP, with each group having multiple membership fields (member or memberUid) that contain a uniqueidentification of the user.
To use LDAP enrolment, your users must to have a valid idnumber field. The LDAP groups must have that idnumber in the member fields for a user to be enrolled in the course. This will usually work well if you are already using LDAP Authentication.
Enrolments will be updated when the user logs in. You can also run a script to keep enrolments in synch. Look in enrol/ldap/cli/sync.php.
This plugin can also be set to automatically create new courses when new groups appear in LDAP.
'; $string['pluginnotenabled'] = 'Plugin not enabled!'; $string['role_mapping'] = 'For each role that you want to assign from LDAP, you need to specify the list of contexts where the role courses\'s groups are located. Separate different contexts with \';\'.
You also need to specify the attribute your LDAP server uses to hold the members of a group. Usually \'member\' or \'memberUid\'
'; +$string['role_mapping_attribute'] = 'LDAP member attribute for {$a}'; +$string['role_mapping_context'] = 'LDAP contexts for {$a}'; $string['role_mapping_key'] = 'Map roles from LDAP '; $string['roles'] = 'Role mapping'; $string['server_settings'] = 'LDAP server settings'; diff --git a/enrol/ldap/settingslib.php b/enrol/ldap/settingslib.php index f54b4a2afbf..ed8fed2e2e4 100644 --- a/enrol/ldap/settingslib.php +++ b/enrol/ldap/settingslib.php @@ -151,7 +151,8 @@ class admin_setting_ldap_rolemapping extends admin_setting { foreach ($data as $role) { $contextid = $this->get_id().'['.$role['id'].'][contexts]'; $contextname = $this->get_full_name().'['.$role['id'].'][contexts]'; - $return .= ''; + $return .= '