diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-18 15:06:57 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-18 15:06:57 +0000 |
commit | f6e917fcce86638e2a06c48c0df714c3dd93c8b0 (patch) | |
tree | 9b81ea34ee1a3d0f7072ebc71506891bf6a51969 /IkiWiki/Render.pm | |
parent | d8c3baf7a3c152f44bcb0e68ed13776a38c8f3a0 (diff) | |
download | ikiwiki-f6e917fcce86638e2a06c48c0df714c3dd93c8b0.tar ikiwiki-f6e917fcce86638e2a06c48c0df714c3dd93c8b0.tar.gz |
* Fix handling of discussion links on discussion pages when l10n is used.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 7ca9a3820..dcd107b81 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -93,10 +93,14 @@ sub genpage ($$$) { #{{{ $template->param(historyurl => $u); $actions++; } - if ($config{discussion} && $page !~ /.*\/discussion$/ && - (length $config{cgiurl} || exists $links{$page."/".gettext("discussion")})) { - $template->param(discussionlink => htmllink($page, $page, gettext("Discussion"), 1, 1)); - $actions++; + if ($config{discussion}) { + my $discussionlink=gettext("discussion"); + if ($page !~ /.*\/\Q$discussionlink\E$/ && + (length $config{cgiurl} || + exists $links{$page."/".$discussionlink})) { + $template->param(discussionlink => htmllink($page, $page, gettext("Discussion"), 1, 1)); + $actions++; + } } if ($actions) { |