From: dongsheng Date: Wed, 28 May 2008 01:39:05 +0000 (+0000) Subject: "MDL-12405, add webpage to user fields, merged from MOODLE_19_STABLE" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f2f55a0e1f117b8d0cd956ecc8dcca7d073f9c4;p=moodle.git "MDL-12405, add webpage to user fields, merged from MOODLE_19_STABLE" --- 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"); /**