X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5f162cfd344f6b75fa39a57be4b3d488cadd1535..9a184badf5a42f4d6bd6d5a8dc0d2c2bbcabde72:/IkiWiki/Plugin/opendiscussion.pm diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm index 4b1a432b2..c835f0106 100644 --- a/IkiWiki/Plugin/opendiscussion.pm +++ b/IkiWiki/Plugin/opendiscussion.pm @@ -3,7 +3,7 @@ package IkiWiki::Plugin::opendiscussion; use warnings; use strict; -use IkiWiki; +use IkiWiki 2.00; sub import { #{{{ hook(type => "canedit", id => "opendiscussion", call => \&canedit); @@ -15,7 +15,7 @@ sub canedit ($$) { #{{{ my $session=shift; my $discussion=gettext("discussion"); - return "" if $page=~/\/\Q$discussion\E$/; + return "" if $page=~/(\/|^)\Q$discussion\E$/; return undef; } #}}}