Just some formatting

This commit is contained in:
moodler
2007-02-25 06:58:10 +00:00
parent 2f7ccc6644
commit 3eff81468f
+8 -8
View File
@@ -44,15 +44,15 @@ class user_edit_form extends moodleform {
if ($user = get_record('user', 'id', $userid)) {
// print picture
if (!empty($CFG->gdversion)) {
$image_el = $mform->getElement('currentpicture');
if ($user and $user->picture) {
$image_el->setValue(print_user_picture($user->id, SITEID, $user->picture, 64, true, false, '', true));
} else {
$image_el->setValue(get_string('none'));
// print picture
if (!empty($CFG->gdversion)) {
$image_el = $mform->getElement('currentpicture');
if ($user and $user->picture) {
$image_el->setValue(print_user_picture($user->id, SITEID, $user->picture, 64,true,false,'',true));
} else {
$image_el->setValue(get_string('none'));
}
}
}
/// disable fields that are locked by auth plugins
$fields = get_user_fieldnames();