From: martin Date: Tue, 6 Aug 2002 09:36:42 +0000 (+0000) Subject: Can now edit own firstname and lastname, and some tidying X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9c055aa5d2adf344537b927a41e3262d5550e5ae;p=moodle.git Can now edit own firstname and lastname, and some tidying --- diff --git a/user/edit.html b/user/edit.html index 0f6b139582..f5b3cf3847 100644 --- a/user/edit.html +++ b/user/edit.html @@ -8,6 +8,18 @@ + +

: + + + + + +

: + + + +

: @@ -104,7 +116,7 @@ - "> + "> diff --git a/user/edit.php b/user/edit.php index 0d36c886b7..ad93d579f8 100644 --- a/user/edit.php +++ b/user/edit.php @@ -160,6 +160,12 @@ function find_form_errors(&$user, &$usernew, &$err) { if (empty($usernew->city)) $err["city"] = get_string("missingcity"); + if (empty($usernew->firstname)) + $err["firstname"] = get_string("missingfirstname"); + + if (empty($usernew->lastname)) + $err["lastname"] = get_string("missinglastname"); + if (empty($usernew->country)) $err["country"] = get_string("missingcountry");