MDL-69510 admin: make ldap configuration warnings clear
This commit is contained in:
@@ -27,7 +27,9 @@ defined('MOODLE_INTERNAL') || die;
|
||||
if ($ADMIN->fulltree) {
|
||||
|
||||
if (!function_exists('ldap_connect')) {
|
||||
$settings->add(new admin_setting_heading('auth_ldap_noextension', '', get_string('auth_ldap_noextension', 'auth_ldap')));
|
||||
$notify = new \core\output\notification(get_string('auth_ldap_noextension', 'auth_ldap'),
|
||||
\core\output\notification::NOTIFY_WARNING);
|
||||
$settings->add(new admin_setting_heading('auth_ldap_noextension', '', $OUTPUT->render($notify)));
|
||||
} else {
|
||||
|
||||
// We use a couple of custom admin settings since we need to massage the data before it is inserted into the DB.
|
||||
|
||||
Reference in New Issue
Block a user