MDL-38717 Admin: Change setType for email to PARAM_EMAIL
authorDamyon Wiese <damyon@moodle.com>
Wed, 27 Mar 2013 04:11:06 +0000 (12:11 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 27 Mar 2013 04:11:06 +0000 (12:11 +0800)
user/editlib.php

index e42a643..434e28d 100644 (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();