[geeklog-cvs] geeklog: Fixed reply notification for the very first comment (bu...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Sep 14 13:56:46 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d132b4cd57f7
changeset: 7317:d132b4cd57f7
user: Dirk Haun <dirk at haun-online.de>
date: Mon Sep 14 19:17:22 2009 +0200
description:
Fixed reply notification for the very first comment (bug #0000973)
diffstat:
public_html/docs/history | 2 ++
system/lib-comment.php | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 9d8e5bdc110b -r d132b4cd57f7 public_html/docs/history
--- a/public_html/docs/history Mon Sep 14 16:54:20 2009 +0200
+++ b/public_html/docs/history Mon Sep 14 19:17:22 2009 +0200
@@ -3,6 +3,8 @@
Oct ??, 2009 (1.6.1)
------------
+- Fixed reply notification for the very first comment (bug #0000973)
+ [dengen, Dirk]
- When an anonymous commentor left a name, use it in the comment notification
email (bug #0000960) [Dirk]
- Removed the CSRF token from all links to edit a comment. We only need it in
diff -r 9d8e5bdc110b -r d132b4cd57f7 system/lib-comment.php
--- a/system/lib-comment.php Mon Sep 14 16:54:20 2009 +0200
+++ b/system/lib-comment.php Mon Sep 14 19:17:22 2009 +0200
@@ -1182,7 +1182,7 @@
DB_unlockTable($_TABLES['comments']);
// notify of new comment
- if ($_CONF['allow_reply_notifications'] == 1 && $pid > 1 && $ret == 0) {
+ if ($_CONF['allow_reply_notifications'] == 1 && $pid > 0 && $ret == 0) {
$result = DB_query("SELECT cid, uid, deletehash FROM {$_TABLES['commentnotifications']} WHERE cid = $pid");
$A = DB_fetchArray($result);
if ($A !== false) {
@@ -1771,7 +1771,7 @@
DB_change($_TABLES['commentnotifications'], 'cid', $newcid, 'mid', $cid);
// notify of new published comment
- if ($_CONF['allow_reply_notifications'] == 1 && $A['pid'] > 1) {
+ if ($_CONF['allow_reply_notifications'] == 1 && $A['pid'] > 0) {
$result = DB_query("SELECT cid, uid, deletehash FROM {$_TABLES['commentnotifications']} WHERE cid = {$A['pid']}");
$B = DB_fetchArray($result);
if ($B !== false) {
More information about the geeklog-cvs
mailing list