[geeklog-cvs] geeklog: Display a message when sending the email to report an a...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Feb 1 11:59:14 EST 2009


details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3196aac35129
changeset: 6752:3196aac35129
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 01 17:56:06 2009 +0100
description:
Display a message when sending the email to report an abusive comment failed

diffstat:

2 files changed, 8 insertions(+), 2 deletions(-)
public_html/docs/history | 2 ++
system/lib-comment.php | 8 ++++++--

diffs (32 lines):

diff -r 60e7e87f1934 -r 3196aac35129 public_html/docs/history
--- a/public_html/docs/history Sun Feb 01 17:46:47 2009 +0100
+++ b/public_html/docs/history Sun Feb 01 17:56:06 2009 +0100
@@ -77,6 +77,8 @@
Feb ??, 2009 (1.5.2)
------------

+- Display a message when sending the email to report an abusive comment failed
+ [Dirk]
- Display a message when sending the email for a new password failed [Dirk]

- Updated Japanese language file, provided by the Geeklog.jp group
diff -r 60e7e87f1934 -r 3196aac35129 system/lib-comment.php
--- a/system/lib-comment.php Sun Feb 01 17:46:47 2009 +0100
+++ b/system/lib-comment.php Sun Feb 01 17:56:06 2009 +0100
@@ -1268,10 +1268,14 @@

$mailsubject = $_CONF['site_name'] . ' ' . $LANG03[27];

- COM_mail ($_CONF['site_mail'], $mailsubject, $mailbody);
+ if (COM_mail ($_CONF['site_mail'], $mailsubject, $mailbody)) {
+ $msg = 27; // message sent
+ } else {
+ $msg = 85; // problem sending the email
+ }
COM_updateSpeedlimit ('mail');

- return COM_refresh ($_CONF['site_url'] . '/index.php?msg=27');
+ return COM_refresh ($_CONF['site_url'] . "/index.php?msg=$msg");
}

?>



More information about the geeklog-cvs mailing list