From f1ebe411be7f2c4aab1f33dc5108f9a9acdeb009 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 28 Sep 2001 13:12:05 +0000 Subject: - comment.inc: + when replying to a comment, the author's name was displayd as being 'anonymous'. - blog.module: + fixed the URLs of the links in the "latest blogs"-block. --- modules/blog/blog.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 8688ee5ac..b95088c57 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -68,7 +68,7 @@ function blog_feed_user($uid = 0, $date = 0) { function blog_feed_last() { $result = db_query("SELECT n.nid, n.title, n.timestamp, b.body, u.name, u.uid FROM blog b LEFT JOIN node n ON b.nid = n.nid LEFT JOIN user u ON n.author = u.uid ORDER BY b.lid DESC LIMIT 15"); while ($blog = db_fetch_object($result)) { - $items .= format_rss_item($blog->title, path_uri() ."module.php?mod=blog&op=view&id=". urlencode($blog->uid), $blog->body); + $items .= format_rss_item($blog->title, path_uri() ."module.php?mod=blog&op=view&id=$blog->uid", $blog->body); } $output .= "\n"; @@ -118,6 +118,7 @@ function blog_page_user($uid = 0, $date = 0) { } if ($blog->comment) { + $links[] = "nid\">". t("moderate") .""; $links[] = "nid\">". format_plural($blog->comments, t("comment"), t("comments")) .""; } @@ -154,6 +155,7 @@ function blog_page_last() { } if ($blog->comment) { + $links[] = "nid\">". t("moderate") .""; $links[] = "nid\">". format_plural($blog->comments, t("comment"), t("comments")) .""; } @@ -350,7 +352,7 @@ function blog_block() { $result = db_query("SELECT u.uid, u.name, n.timestamp, n.title, n.nid FROM node n LEFT JOIN user u ON n.author = u.uid WHERE n.type = 'blog' ORDER BY n.nid DESC LIMIT 10"); while ($node = db_fetch_object($result)) { - $output .= "nid\">". check_output($node->title) ."
\n"; + $output .= "uid\">". check_output($node->title) ."
\n"; } $block[0]["subject"] = "". t("User blogs") .""; -- cgit v1.2.3