From 50c7f7ab04bbc1e28eecb4cc6253c117718d5e07 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 14 Dec 2006 19:41:41 +0000 Subject: * Fix sometimes broken links to Discussion pages from blog pages. --- IkiWiki/Plugin/inline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 8c00ca5f5..fd7a59ab3 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -135,7 +135,7 @@ sub preprocess_inline (@) { #{{{ my $type = pagetype($file); if ($config{discussion}) { $template->param(have_actions => 1); - $template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1)); + $template->param(discussionlink => htmllink($page, $params{page}, "Discussion", 1, 1)); } if (length $config{cgiurl} && defined $type) { $template->param(have_actions => 1); -- cgit v1.2.3