From e03947278e7afca7d4c63bccf7e015bb936a9a40 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 26 Oct 2003 05:28:58 +0000 Subject: [PATCH] Comments should use new permalinks. git-svn-id: http://svn.automattic.com/wordpress/trunk@471 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index f99a96747..706d6ba97 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -1162,8 +1162,8 @@ function comments_link($file='', $echo=true) { global $querystring_start, $querystring_equal, $querystring_separator; if ($file == '') $file = $pagenow; if ($file == '/') $file = ''; - if (!$echo) return $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments'; - else echo $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments'; + if (!$echo) return get_permalink() . '#comments'; + else echo get_permalink() . '#comments'; } function comments_popup_script($width=400, $height=400, $file='b2commentspopup.php') { @@ -1188,7 +1188,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com return; } } - echo '