From: skodak Date: Fri, 5 Jan 2007 08:44:05 +0000 (+0000) Subject: fixed my previous changes broken by new user form merging X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9495d0578159109a2bdd3867c69bd6924c2c3c94;p=moodle.git fixed my previous changes broken by new user form merging --- diff --git a/user/edit.php b/user/edit.php index 395c397c9f..ad8b1fde98 100644 --- a/user/edit.php +++ b/user/edit.php @@ -99,7 +99,7 @@ unset($usernew->password); } - if (!empty($CFG->unicodedb) && $CFG->allowusermailcharset) { + if ($CFG->allowusermailcharset) { $usernew->mailcharset = clean_param($usernew->mailcharset, PARAM_CLEAN); if (!empty($usernew->mailcharset)) { set_user_preference('mailcharset', $usernew->mailcharset, $user->id); @@ -285,7 +285,7 @@ } else { $userfullname = fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); } - if ($course->category) { + if ($course->id != SITEID) { print_header("$course->shortname: $streditmyprofile", "$course->fullname: $streditmyprofile", "wwwroot/course/view.php?id=$course->id\">$course->shortname -> id\">$strparticipants