aboutsummaryrefslogtreecommitdiffstats
path: root/password.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--password.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/password.php b/password.php
index 942540253..ea470da27 100644
--- a/password.php
+++ b/password.php
@@ -42,16 +42,8 @@ $page['infos'] = array();
if (isset($_POST['submit']))
{
- // in case of error, creation of mailto link
- $query = '
-SELECT '.$conf['user_fields']['email'].'
- FROM '.USERS_TABLE.'
- WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].'
-;';
- list($mail_webmaster) = mysql_fetch_array(pwg_query($query));
-
$mailto =
- '<a href="mailto:'.$mail_webmaster.'">'
+ '<a href="mailto:'.get_webmaster_mail_address().'">'
.l10n('Contact webmaster')
.'</a>'
;
@@ -92,7 +84,7 @@ WHERE '
."\n".l10n('Password').': '.$new_password
;
- if (pwg_mail($row['email'], $mail_webmaster, l10n('password updated'), $infos))
+ if (pwg_mail($row['email'], '', l10n('password updated'), $infos))
{
$data =
array(