]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/opendiscussion.pm
added configuration for recentchanges
[ikiwiki.git] / IkiWiki / Plugin / opendiscussion.pm
index fd5c9673d68c3581722dbe41502d0363d502a5ac..c835f01061ea8a5364d369b768ebbada2fb6acfd 100644 (file)
@@ -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;
 } #}}}