diff options
author | rub <rub@piwigo.org> | 2006-08-09 22:05:29 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-08-09 22:05:29 +0000 |
commit | 8eef1c34ae69abceb8c52e3a03b7cbce2cb582df (patch) | |
tree | f6ff6553ec3c39c477165c673d37eff6022fe611 /password.php | |
parent | 6e579239465f10d393956dfdebf5ee0434ea094d (diff) |
Resolved Issue ID 0000507:
o format of email
o max_execution_time equal to 0
o -f with only adress mail
o use of standard function get_webmaster_mail_address
2 news $conf parameters.
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1530 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'password.php')
-rw-r--r-- | password.php | 12 |
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( |