diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-20 20:02:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-20 20:02:42 +0000 |
commit | 002f6c936136149b44127937d9bf87fb7f770414 (patch) | |
tree | 9929b1c2c0e3c8dabd929388a8413838b2facadf | |
parent | 6690793cbb839cb788a80a2071e5240a3ffbff95 (diff) | |
download | brdo-002f6c936136149b44127937d9bf87fb7f770414.tar.gz brdo-002f6c936136149b44127937d9bf87fb7f770414.tar.bz2 |
- Patch #10722 by drumm: the user's signature was not remembered when the 'my account' form was found to be invalid.
-rw-r--r-- | modules/comment.module | 2 | ||||
-rw-r--r-- | modules/comment/comment.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module index af71c129a..acb9679c0 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -327,7 +327,7 @@ function comment_update_index() { function comment_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { // when user tries to edit his own data - return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); + return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $edit['signature'], 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); } if ($type == 'validate') { // validate user data editing diff --git a/modules/comment/comment.module b/modules/comment/comment.module index af71c129a..acb9679c0 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -327,7 +327,7 @@ function comment_update_index() { function comment_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { // when user tries to edit his own data - return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); + return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $edit['signature'], 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); } if ($type == 'validate') { // validate user data editing |