From: intrigeri Date: Wed, 3 Jun 2009 16:29:20 +0000 (+0200) Subject: quick fix for http://ikiwiki.info/bugs/unwanted_discussion_links_on_discussion_pages/ X-Git-Tag: 3.15~186 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ed033a4aac0d603c375294bdb19f5b74519f389;p=ikiwiki.git quick fix for ikiwiki.info/bugs/unwanted_discussion_links_on_discussion_pages/ Signed-off-by: intrigeri --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index adae9f0d5..093c25b45 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -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));