]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14129, fix print_error"
authordongsheng <dongsheng>
Sun, 15 Jun 2008 09:48:42 +0000 (09:48 +0000)
committerdongsheng <dongsheng>
Sun, 15 Jun 2008 09:48:42 +0000 (09:48 +0000)
user/profile/lib.php

index 4bc3471769ecd05c7e321d76e0d7d54fcafa1800..607cdaf063fed8ecf96ad27246d5005fa8bc3298 100644 (file)
@@ -43,7 +43,7 @@ class profile_field_base {
      * @param  form  instance of the moodleform class
      */
     function edit_field_add(&$mform) {
-        print_error('This abstract method must be overriden');
+        print_error('mustbeoveride', 'debug');
     }
 
     
@@ -98,7 +98,7 @@ class profile_field_base {
         if ($dataid = $DB->get_field('user_info_data', 'id', array('userid'=>$data->userid, 'fieldid'=>$data->fieldid))) {
             $data->id = $dataid;
             if (!$DB->update_record('user_info_data', $data)) {
-                print_error('Error updating custom profile field!');
+                print_error('cannotupdatecustomprofile');
             }
         } else {
             $DB->insert_record('user_info_data', $data);