]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
fix whitespace
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index 30249b9bd1e6dfef00af3bfc1a4e0815bbbf9ac0..7ca9a38208aef4d141f629943ce32d10f388ee20 100644 (file)
@@ -93,7 +93,8 @@ sub genpage ($$$) { #{{{
                $template->param(historyurl => $u);
                $actions++;
        }
-       if ($config{discussion} && (length $config{cgiurl} || exists $links{$page."/".gettext("discussion")})) {
+       if ($config{discussion} && $page !~ /.*\/discussion$/ &&
+           (length $config{cgiurl} || exists $links{$page."/".gettext("discussion")})) {
                $template->param(discussionlink => htmllink($page, $page, gettext("Discussion"), 1, 1));
                $actions++;
        }