From: garvinhicking Date: Mon, 6 Jun 2005 13:26:19 +0000 (+0000) Subject: use "-" instead of "_" X-Git-Tag: 0.9~417 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=51af30820f481e3d7ba717430efd784bd5ce904f;p=s9y.git use "-" instead of "_" --- 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') {