MDL-69510 admin: make ldap configuration warnings clear

This commit is contained in:
Jake Dallimore
2020-09-03 10:21:07 +08:00
parent 38abfb6a01
commit 0d6e5f2bc2
5 changed files with 15 additions and 8 deletions
+3 -1
View File
@@ -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.