From: garvinhicking Date: Mon, 8 Aug 2005 13:46:03 +0000 (+0000) Subject: Append the comment id to the subscription mail. X-Git-Tag: 0.8.4~14 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4a428714dffaaf94647ca3b83e3d9e4b4060b4a1;p=s9y.git Append the comment id to the subscription mail. --- diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index ceddb43..e36dcba 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -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 = '';