summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index a07fa5fef..e60a6bda2 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1169,7 +1169,8 @@ function user_edit($category = 'account') {
}
$output = form($output, 'post', 0, array('enctype' => 'multipart/form-data'));
- print theme('page', $output, $account->name);
+ drupal_set_title($account->name);
+ print theme('page', $output);
}
function user_view($uid = 0) {
@@ -1186,7 +1187,8 @@ function user_view($uid = 0) {
}
}
- print theme('page', theme('user_profile', $account, $fields), $account->name);
+ drupal_set_title($account->name);
+ print theme('page', theme('user_profile', $account, $fields));
}
else {
drupal_not_found();