aboutsummaryrefslogtreecommitdiffstats
path: root/password.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-08-09 22:10:12 +0000
committerrub <rub@piwigo.org>2006-08-09 22:10:12 +0000
commite097dba6a6a7220b0a109672bc68d32c4d70217c (patch)
tree2e891f7f44e6692f3ceae2a6e2af4b2217387a6a /password.php
parent9d38573074ff6601b3f3592bfbf2718b2e63382c (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. Merge branch-1_6 r1529:1530 into BSF git-svn-id: http://piwigo.org/svn/trunk@1531 68402e56-0260-453c-a942-63ccdbb3a9ee
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(