From 51af30820f481e3d7ba717430efd784bd5ce904f Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 6 Jun 2005 13:26:19 +0000 Subject: [PATCH] use "-" instead of "_" --- docs/NEWS | 3 +++ include/functions_comments.inc.php | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 58d79de..6ae2576 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 0.9 () ------------------------------------------------------------------------ + * Fixed using "_" instead of "-" in the approve trackback/comments + URLs. (garvinhicking) + * Introduce permission groups with customizable permission sets. (garvinhicking) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index 9c33472..e978cdb 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -432,10 +432,10 @@ function serendipity_sendComment($comment_id, $to, $fromName, $fromEmail, $fromU $fromName = ANONYMOUS; } - $entryURI = serendipity_archiveURL($id, $title, 'baseURL'); - $path = ($type == 'TRACKBACK') ? 'trackback' : 'comment'; - $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'); + $entryURI = serendipity_archiveURL($id, $title, 'baseURL'); + $path = ($type == 'TRACKBACK') ? 'trackback' : 'comment'; + $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'); if ($type == 'TRACKBACK') { -- 2.39.5