diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-04-19 14:44:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-04-19 14:44:34 +0000 |
commit | 1db338e0e1701a2cda518d23c9c5eafdfb4d922c (patch) | |
tree | 5406d11ad39bf3c4b34433813aabc31bbe277a30 /modules | |
parent | bb92a502e121f2551c87d027f54ef75dcb95981f (diff) | |
download | brdo-1db338e0e1701a2cda518d23c9c5eafdfb4d922c.tar.gz brdo-1db338e0e1701a2cda518d23c9c5eafdfb4d922c.tar.bz2 |
- Patch #248140 by thehong: usability: add destination to user editing page link on personal contact form.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/contact/contact.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index d801024f9..c0d90f194 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -158,7 +158,7 @@ function contact_user_page($account) { global $user; if (!valid_email_address($user->mail)) { - $output = t('You need to provide a valid e-mail address to contact other users. Please update your <a href="@url">user information</a> and try again.', array('@url' => url("user/$user->uid/edit"))); + $output = t('You need to provide a valid e-mail address to contact other users. Please update your <a href="@url">user information</a> and try again.', array('@url' => url("user/$user->uid/edit", array('query' => 'destination=' . drupal_get_destination())))); } else if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3)) && !user_access('administer site-wide contact form')) { $output = t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3))); |