From 7f2f55a0e1f117b8d0cd956ecc8dcca7d073f9c4 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 28 May 2008 01:39:05 +0000 Subject: [PATCH] "MDL-12405, add webpage to user fields, merged from MOODLE_19_STABLE" --- admin/auth_config.php | 5 +++-- lib/authlib.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/auth_config.php b/admin/auth_config.php index 597305e990..9d78b2e26f 100644 --- a/admin/auth_config.php +++ b/admin/auth_config.php @@ -136,10 +136,11 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts, $fieldname = get_string('language'); } elseif (preg_match('/^(.+?)(\d+)$/', $fieldname, $matches)) { $fieldname = get_string($matches[1]) . ' ' . $matches[2]; + } elseif ($fieldname == 'url') { + $fieldname = get_string('webpage'); } else { $fieldname = get_string($fieldname); - } - + } if ($retrieveopts) { $varname = 'field_map_' . $field; diff --git a/lib/authlib.php b/lib/authlib.php index 971c7d68c7..70fa379959 100644 --- a/lib/authlib.php +++ b/lib/authlib.php @@ -63,7 +63,7 @@ class auth_plugin_base { */ var $userfields = array("firstname", "lastname", "email", "phone1", "phone2", "institution", "department", "address", "city", "country", - "description", "idnumber", "lang"); + "description", "idnumber", "lang", "url"); /** -- 2.39.5