]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/opendiscussion.pm
linkmap: Add option to omit disconnected pages from the map.
[git.ikiwiki.info.git] / IkiWiki / Plugin / opendiscussion.pm
index 3da01efee154988d1432d0ed54680525569e224c..1bec4b013a9be6686f08a29b2c1a6658b353c635 100644 (file)
@@ -23,8 +23,7 @@ sub canedit ($$) {
        my $cgi=shift;
        my $session=shift;
 
-       my $discussion=gettext("discussion");
-       return "" if $page=~/(\/|^)\Q$discussion\E$/;
+       return "" if $page=~/(\/|^)\Q$config{discussionpage}\E$/;
        return undef;
 }