]> git.mjollnir.org Git - s9y.git/commitdiff
Append the comment id to the subscription mail.
authorgarvinhicking <garvinhicking>
Mon, 8 Aug 2005 13:46:03 +0000 (13:46 +0000)
committergarvinhicking <garvinhicking>
Mon, 8 Aug 2005 13:46:03 +0000 (13:46 +0000)
include/functions_comments.inc.php

index ceddb4361af85a094e32bd9cdfc0af2e14e65533..e36dcba329e9b2032b5111212542caefcd1c70ac 100644 (file)
@@ -304,7 +304,7 @@ function serendipity_approveComment($cid, $entry_id, $force = false) {
     serendipity_db_query($query);
 
     if ($serendipity['allowSubscriptions']) {
-        serendipity_mailSubscribers($entry_id, $rs['author'], $rs['email'], $rs['title'], $rs['authoremail']);
+        serendipity_mailSubscribers($entry_id, $rs['author'], $rs['email'], $rs['title'], $rs['authoremail'], $cid);
     }
     return true;
 }
@@ -371,10 +371,10 @@ function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source =
     }
 }
 
-function serendipity_mailSubscribers($entry_id, $poster, $posterMail, $title, $fromEmail = 'none@example.com') {
+function serendipity_mailSubscribers($entry_id, $poster, $posterMail, $title, $fromEmail = 'none@example.com', $cid = null) {
     global $serendipity;
 
-    $entryURI = serendipity_archiveURL($entry_id, $title, 'baseURL');
+    $entryURI = serendipity_archiveURL($entry_id, $title, 'baseURL') . ($cid > 0 ? '#' . $cid : '');
     $subject =  sprintf(NEW_COMMENT_TO_SUBSCRIBED_ENTRY, $title);
 
     $pgsql_insert = '';