[geeklog-cvs] geeklog: Fixed comment notification

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Fri Apr 10 16:18:01 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/981aa6e65333
changeset: 6911:981aa6e65333
user:      Dirk Haun <dirk at haun-online.de>
date:      Fri Apr 10 22:17:24 2009 +0200
description:
Fixed comment notification

diffstat:

3 files changed, 7 insertions(+), 8 deletions(-)
language/english.php       |    3 +--
language/english_utf-8.php |    3 +--
system/lib-comment.php     |    9 +++++----

diffs (55 lines):

diff -r a88a3b7c7064 -r 981aa6e65333 language/english.php
--- a/language/english.php	Fri Apr 10 21:31:57 2009 +0200
+++ b/language/english.php	Fri Apr 10 22:17:24 2009 +0200
@@ -217,8 +217,7 @@
     37 => 'New Comment Reply',
     38 => 'Someone has replied to your comment.',
     39 => 'You may view the comment thread at the following address: ',
-    40 => 'If you wish to receive no further notifications of replies, visit the
- following link: '
+    40 => 'If you wish to receive no further notifications of replies, visit the following link: '
 );
 
 ###############################################################################
diff -r a88a3b7c7064 -r 981aa6e65333 language/english_utf-8.php
--- a/language/english_utf-8.php	Fri Apr 10 21:31:57 2009 +0200
+++ b/language/english_utf-8.php	Fri Apr 10 22:17:24 2009 +0200
@@ -217,8 +217,7 @@
     37 => 'New Comment Reply',
     38 => 'Someone has replied to your comment.',
     39 => 'You may view the comment thread at the following address: ',
-    40 => 'If you wish to receive no further notifications of replies, visit the
- following link: '
+    40 => 'If you wish to receive no further notifications of replies, visit the following link: '
 );
 
 ###############################################################################
diff -r a88a3b7c7064 -r 981aa6e65333 system/lib-comment.php
--- a/system/lib-comment.php	Fri Apr 10 21:31:57 2009 +0200
+++ b/system/lib-comment.php	Fri Apr 10 22:17:24 2009 +0200
@@ -1132,9 +1132,9 @@
         
     }
 
-    DB_unlockTable ($_TABLES['comments']);
     $cid = DB_insertId();
-    
+    DB_unlockTable($_TABLES['comments']);
+
     //notify of new comment 
     if ($_CONF['allow_reply_notifications'] == 1 && $pid > 1 && $ret == 0) {
         $result = DB_query ("SELECT cid, uid, deletehash FROM {$_TABLES['commentnotifications']} WHERE "
@@ -1674,10 +1674,11 @@
                         "'{$A['pid']}','{$A['ipaddress']}',$indent");
     }
     $newcid = DB_insertId();
+
     DB_delete($_TABLES['commentsubmissions'], 'cid', $cid);
-    
+
     DB_change($_TABLES['commentnotifications'], 'cid', $newcid, 'mid', $cid);
-        
+
     // notify of new published comment
     if ($_CONF['allow_reply_notifications'] == 1 && $A['pid'] > 1) {
         $result = DB_query("SELECT cid, uid, deletehash FROM {$_TABLES['commentnotifications']} WHERE cid = {$A['pid']}");



More information about the geeklog-cvs mailing list