diff --git a/admin/settings/server.php b/admin/settings/server.php index 8ef94a7722e..5bd3480acac 100644 --- a/admin/settings/server.php +++ b/admin/settings/server.php @@ -28,9 +28,12 @@ if ($primaryadmin) { $primaryadminemail = NULL; $primaryadminname = NULL; } -$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'), new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS)); -$temp->add(new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'), new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_NOTAGS)); -$temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), new lang_string('configsupportpage', 'admin'), '', PARAM_URL)); +$temp->add(new admin_setting_configtext('supportname', new lang_string('supportname', 'admin'), + new lang_string('configsupportname', 'admin'), $primaryadminname, PARAM_NOTAGS)); +$temp->add(new admin_setting_configtext('supportemail', new lang_string('supportemail', 'admin'), + new lang_string('configsupportemail', 'admin'), $primaryadminemail, PARAM_EMAIL)); +$temp->add(new admin_setting_configtext('supportpage', new lang_string('supportpage', 'admin'), + new lang_string('configsupportpage', 'admin'), '', PARAM_URL)); $ADMIN->add('server', $temp); diff --git a/message/output/email/settings.php b/message/output/email/settings.php index 69f58dca354..f406c790357 100644 --- a/message/output/email/settings.php +++ b/message/output/email/settings.php @@ -33,7 +33,8 @@ if ($ADMIN->fulltree) { $settings->add(new admin_setting_configtext('smtpuser', get_string('smtpuser', 'message_email'), get_string('configsmtpuser', 'message_email'), '', PARAM_NOTAGS)); $settings->add(new admin_setting_configpasswordunmask('smtppass', get_string('smtppass', 'message_email'), get_string('configsmtpuser', 'message_email'), '')); $settings->add(new admin_setting_configtext('smtpmaxbulk', get_string('smtpmaxbulk', 'message_email'), get_string('configsmtpmaxbulk', 'message_email'), 1, PARAM_INT)); - $settings->add(new admin_setting_configtext('noreplyaddress', get_string('noreplyaddress', 'message_email'), get_string('confignoreplyaddress', 'message_email'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_NOTAGS)); + $settings->add(new admin_setting_configtext('noreplyaddress', get_string('noreplyaddress', 'message_email'), + get_string('confignoreplyaddress', 'message_email'), 'noreply@' . get_host_from_url($CFG->wwwroot), PARAM_EMAIL)); $settings->add(new admin_setting_configcheckbox('emailonlyfromnoreplyaddress', get_string('emailonlyfromnoreplyaddress', 'message_email'), get_string('configemailonlyfromnoreplyaddress', 'message_email'), 0));