enrol ldap MDL-23412 Quick fix for two notices in ldap settings, needs review by maintainer

This commit is contained in:
Sam Hemelryk 2010-07-20 02:50:01 +00:00
parent 6647e82df9
commit 62bf1746a2

View File

@ -63,6 +63,9 @@ if ($ADMIN->fulltree) {
$settings->add(new admin_setting_configselect('enrol_ldap/user_search_sub', get_string('user_search_sub_key', 'enrol_ldap'), get_string('user_search_sub', 'enrol_ldap'), 0, $options));
$options = ldap_supported_usertypes();
$settings->add(new admin_setting_configselect('enrol_ldap/user_type', get_string('user_type_key', 'enrol_ldap'), get_string('user_type', 'enrol_ldap'), 'default', $options));
if (!defined('LDAP_DEFER_NEVER')) define ('LDAP_DEREF_NEVER', 0);
if (!defined('LDAP_DEREF_ALWAYS')) define ('LDAP_DEREF_ALWAYS', 3);
$options = array();
$options[LDAP_DEREF_NEVER] = get_string('no');
$options[LDAP_DEREF_ALWAYS] = get_string('yes');