]> git.mjollnir.org Git - s9y.git/commitdiff
use "-" instead of "_"
authorgarvinhicking <garvinhicking>
Mon, 6 Jun 2005 13:26:19 +0000 (13:26 +0000)
committergarvinhicking <garvinhicking>
Mon, 6 Jun 2005 13:26:19 +0000 (13:26 +0000)
docs/NEWS
include/functions_comments.inc.php

index 58d79dec95ab9caacb989e8a909ad6bbf105233c..6ae2576196e02971ff27d215b76bb7d6ce43f33b 100644 (file)
--- 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)
       
index 9c334726aa7199aa48be808f68b8a9083b0e5fa7..e978cdb01f0a4f902c5b19f0057fc0e6df4d3d90 100644 (file)
@@ -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') {