--- serendipity-nightly/include/functions_comments.inc.php 2009-07-04 03:37:47.000000000 +0200 +++ /var/www/include/functions_comments.inc.php 2009-12-20 17:30:05.000000000 +0100 @@ -1110,6 +1110,20 @@ $deleteURI = serendipity_rewriteURL(PATH_DELETE . '/'. $path .'/' . $comment_id . '/' . $id . '-' . serendipity_makeFilename($title) . '.html', 'baseURL'); $approveURI = serendipity_rewriteURL(PATH_APPROVE . '/'. $path .'/' . $comment_id . '/' . $id . '-' . serendipity_makeFilename($title) . '.html', 'baseURL'); + $eventData = array( 'comment_id' => $comment_id, + 'entry_id' => $id, + 'entryURI' => $entryURI, + '$path' => $path, + 'deleteURI' => $deleteURI, + 'approveURI' => $approveURI, + 'moderate_comment' => $moderate_comment, + 'action_more' => array()); + serendipity_plugin_api::hook_event('backend_sendcomment', $eventData); + + foreach($eventData['action_more'] as $action) { + $action_more .="\n" . str_repeat(' ', 3) . $action; + } + if ($type == 'TRACKBACK') { /******************* TRACKBACKS *******************/ @@ -1129,7 +1143,8 @@ . (($moderate_comment) ? "\n" . str_repeat(' ', 2) . THIS_TRACKBACK_NEEDS_REVIEW : '') . "\n" . str_repeat(' ', 3) . str_pad(VIEW_ENTRY, 15) . ' -- '. $entryURI . "\n" . str_repeat(' ', 3) . str_pad(DELETE_TRACKBACK, 15) . ' -- '. $deleteURI - . (($moderate_comment) ? "\n" . str_repeat(' ', 3) . str_pad(APPROVE_TRACKBACK, 15) . ' -- '. $approveURI : ''); + . (($moderate_comment) ? "\n" . str_repeat(' ', 3) . str_pad(APPROVE_TRACKBACK, 15) . ' -- '. $approveURI : '') + . $action_more; } else { @@ -1152,7 +1167,8 @@ . (($moderate_comment) ? "\n" . str_repeat(' ', 2) . THIS_COMMENT_NEEDS_REVIEW : '') . "\n" . str_repeat(' ', 3) . str_pad(VIEW_COMMENT, 15) . ' -- '. $entryURI .'#c'. $comment_id . "\n" . str_repeat(' ', 3) . str_pad(DELETE_COMMENT, 15) . ' -- '. $deleteURI - . (($moderate_comment) ? "\n" . str_repeat(' ', 3) . str_pad(APPROVE_COMMENT, 15) . ' -- '. $approveURI : ''); + . (($moderate_comment) ? "\n" . str_repeat(' ', 3) . str_pad(APPROVE_COMMENT, 15) . ' -- '. $approveURI : '') + . $action_more; } return serendipity_sendMail($to, $subject, $text, $fromEmail, null, $fromName);