From 33604ae034e6581d5c2d28930fd97a441717f0e1 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 20 May 2002 21:03:07 +0000 Subject: - fixing perma links. --- modules/blog/blog.module | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index c9a9ae39d..69c775720 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -157,19 +157,19 @@ function blog_page_user($uid = 0, $date = 0, $all = 0) { if ($date != date("dny", $blog->created)) { $date = date("dny", $blog->created); - $output .= "".lm(format_date($blog->created, custom, "d M Y"), array("mod" => "blog", "id" => $blog->uid, "date" => mktime(23, 59, 59, date("n", $blog->created), date("d", $blog->created), date("Y", $blog->created))), t("Permanent link to this blog entry.")).""; + $output .= "". lm(format_date($blog->created, "small", "d M Y"), array("mod" => "blog", "id" => $blog->uid, "date" => mktime(23, 59, 59, date("n", $blog->created), date("d", $blog->created), date("Y", $blog->created))), "", array("title" => t("Permanent link to this date."))) .""; } $links = link_node($blog, 1); - $output .= "
". check_output($blog->title) ."
". $theme->links($links) .""; - $output .= "
". check_output($blog->teaser, 1) ."

"; + $output .= "
". check_output($blog->title) ."
". $theme->links($links) ."". l('', array("id" => $node->nid), "node", "", array("title" => t("Permanent link to this blog entry"))) .""; + $output .= "
". check_output($blog->teaser, 1) ."

"; } $output .= ""; $output .= lm("image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />", array("mod" => "blog", "op" => "feed", "id" => $account->uid), "", array("title" => t("Read the XML version of this page."))) ."\n"; - if (!$all) { + if (!$all && !$date) { $output .= lm(t("show all blogs"), array("mod" => "blog", "op" => "view", "id" => $account->uid, "all" => 1), "", array("title" => t("Show all blogs by this user"))); } else { @@ -303,7 +303,6 @@ function blog_link($type, $node = 0, $main) { } if ($type == "node" && $node->type == "blog") { - global $op; if (blog_access("update", $node)) { $links[] = lm(t("edit this blog"), array("mod" => "node", "op" => "edit", "id" => $node->nid), "", array("title" => t("Edit this blog entry."))); } -- cgit v1.2.3