From: dongsheng Date: Sun, 15 Jun 2008 09:48:42 +0000 (+0000) Subject: "MDL-14129, fix print_error" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=161ef22b3f966d211b739d468d0335026d648c05;p=moodle.git "MDL-14129, fix print_error" --- diff --git a/user/profile/lib.php b/user/profile/lib.php index 4bc3471769..607cdaf063 100644 --- a/user/profile/lib.php +++ b/user/profile/lib.php @@ -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);