quick fix for http://ikiwiki.info/bugs/unwanted_discussion_links_on_discussion_pages/
authorintrigeri <intrigeri@boum.org>
Wed, 3 Jun 2009 16:29:20 +0000 (18:29 +0200)
committerintrigeri <intrigeri@boum.org>
Wed, 3 Jun 2009 16:29:20 +0000 (18:29 +0200)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Render.pm

index adae9f0d5898dee39190a29328fa7e221c82dcdc..093c25b4579cacaedaa7f62028e2321300660b6b 100644 (file)
@@ -77,7 +77,7 @@ sub genpage ($$) {
        }
        if ($config{discussion}) {
                my $discussionlink=gettext("discussion");
-               if ($page !~ /.*\/\Q$discussionlink\E$/ &&
+               if ($page !~ /.*\/\Q$discussionlink\E$/i &&
                   (length $config{cgiurl} ||
                    exists $links{$page."/".$discussionlink})) {
                        $template->param(discussionlink => htmllink($page, $page, gettext("Discussion"), noimageinline => 1, forcesubpage => 1));