aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/opendiscussion.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/opendiscussion.pm')
-rw-r--r--IkiWiki/Plugin/opendiscussion.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm
index 60b193eca..1bec4b013 100644
--- a/IkiWiki/Plugin/opendiscussion.pm
+++ b/IkiWiki/Plugin/opendiscussion.pm
@@ -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;
}