From 170cf2f4a446d99da3336da20ee42848a7da4c3d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Jul 2001 12:50:11 +0000 Subject: - Fixed "Blog this item" as reported by Natrak. --- modules/blog.module | 2 +- modules/blog/blog.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/blog.module b/modules/blog.module index e7b5c6514..1b50aa6d2 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -32,7 +32,7 @@ function blog_page_all($num = 20) { $result = db_query("SELECT n.timestamp, n.title, u.userid, n.nid, b.body FROM blog b LEFT JOIN node n ON b.nid = n.nid LEFT JOIN users u ON n.author = u.id ORDER BY b.lid DESC LIMIT $num"); while ($blog = db_fetch_object($result)) { - $output .= blog_format_link($blog->nid) ." "; + $output .= blog_format_link($blog) ." "; $output .= "userid) ."\">\"". "; $output .= format_username($blog->userid) ." ". t("on") ." ". format_date($blog->timestamp) .":
"; $output .= "
". check_input($blog->title) ."
" . check_output($blog->body, 1) ."
\n"; diff --git a/modules/blog/blog.module b/modules/blog/blog.module index e7b5c6514..1b50aa6d2 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -32,7 +32,7 @@ function blog_page_all($num = 20) { $result = db_query("SELECT n.timestamp, n.title, u.userid, n.nid, b.body FROM blog b LEFT JOIN node n ON b.nid = n.nid LEFT JOIN users u ON n.author = u.id ORDER BY b.lid DESC LIMIT $num"); while ($blog = db_fetch_object($result)) { - $output .= blog_format_link($blog->nid) ." "; + $output .= blog_format_link($blog) ." "; $output .= "userid) ."\">\"". "; $output .= format_username($blog->userid) ." ". t("on") ." ". format_date($blog->timestamp) .":
"; $output .= "
". check_input($blog->title) ."
" . check_output($blog->body, 1) ."
\n"; -- cgit v1.2.3