From d95499bf03c65f59190687882567c80a074c711a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 13 Jun 2003 17:34:18 +0000 Subject: - Bugfix: small Xtemplate fixes. Patch by Ax. (Slightly modified.) - Bugfix: block patch fix. Patch by Gerhard. - Bugfix: fixed broken URL in ping. Patch by Gerhard. (This should fix the problems shown on http://www.blo.gs/info.php?id=1515.) - Improvement: added better password generator. Patch #1 by Al. Fixes bug #1935. - Improvement: performance improvement to the blog module. Patch by Marco. --- modules/blog.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blog.module') diff --git a/modules/blog.module b/modules/blog.module index fe663d3b0..4b503f024 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -249,7 +249,7 @@ function blog_block($op = "list", $delta = 0) { } else { if (user_access("access content")) { - $block["content"] = node_title_list(db_query_range("SELECT u.uid, u.name, n.created, n.title, n.nid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC", 0, 10)); + $block["content"] = node_title_list(db_query_range("SELECT n.title, n.nid FROM node n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC", 0, 10)); $block["content"] .= "
". l(t("more"), "blog", array("title" => t("Read the latest blog entries."))) ."
"; $block["subject"] = t("Blogs"); } -- cgit v1.2.3