]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
added some comments for translators
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index eb21959f90120ff2b463eedd8ae3da1416858f8c..ecae47f1afb63f1ad3d41b2556bd7cf2adae355b 100644 (file)
@@ -157,7 +157,9 @@ sub preprocess_inline (@) { #{{{
                        if ($actions) {
                                my $file = $pagesources{$page};
                                my $type = pagetype($file);
                        if ($actions) {
                                my $file = $pagesources{$page};
                                my $type = pagetype($file);
-                               if ($config{discussion}) {
+                               if ($config{discussion} &&
+                                   $page !~ /.*\/discussion$/ &&
+                                   (length $config{cgiurl} || exists $links{$page."/".gettext("discussion")})) {
                                        $template->param(have_actions => 1);
                                        $template->param(discussionlink => htmllink($page, $params{page}, "Discussion", 1, 1));
                                }
                                        $template->param(have_actions => 1);
                                        $template->param(discussionlink => htmllink($page, $params{page}, "Discussion", 1, 1));
                                }