MDL-49827 core: Expose the noemailever config in the admin UI

This commit is contained in:
Sirisha Garapati
2023-08-15 14:47:20 +10:00
parent 478abd671f
commit 5c203e8dc3
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -453,6 +453,12 @@ if ($hassiteconfig) {
// Outgoing mail configuration.
$temp = new admin_settingpage('outgoingmailconfig', new lang_string('outgoingmailconfig', 'admin'));
if (!empty($CFG->noemailever)) {
$noemaileverwarning = new \core\output\notification(get_string('noemaileverwarning', 'admin'),
\core\output\notification::NOTIFY_ERROR);
$temp->add(new admin_setting_heading('outgoingmaildisabled', '', $OUTPUT->render($noemaileverwarning)));
}
$temp->add(new admin_setting_heading('smtpheading', new lang_string('smtp', 'admin'),
new lang_string('smtpdetail', 'admin')));