]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/opendiscussion.pm
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[git.ikiwiki.info.git] / IkiWiki / Plugin / opendiscussion.pm
index 60b193eca04fb08702a99077aa911f66dbc33705..1bec4b013a9be6686f08a29b2c1a6658b353c635 100644 (file)
@@ -23,8 +23,7 @@ sub canedit ($$) {
        my $cgi=shift;
        my $session=shift;
 
-       my $discussion=lc(gettext("Discussion"));
-       return "" if $page=~/(\/|^)\Q$discussion\E$/;
+       return "" if $page=~/(\/|^)\Q$config{discussionpage}\E$/;
        return undef;
 }