From 161ef22b3f966d211b739d468d0335026d648c05 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Sun, 15 Jun 2008 09:48:42 +0000 Subject: [PATCH] "MDL-14129, fix print_error" --- user/profile/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5