MDL-38717 Admin: Change setType for email to PARAM_EMAIL

This commit is contained in:
Damyon Wiese 2013-03-27 12:11:06 +08:00
parent 1b393ce91d
commit 5df15f2524

View File

@ -155,7 +155,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
} else {
$mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
$mform->addRule('email', $strrequired, 'required', null, 'client');
$mform->setType('email', PARAM_NOTAGS);
$mform->setType('email', PARAM_EMAIL);
}
$choices = array();