]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/opendiscussion.pm
po: inject custom isselflink to fix selflink detection on translation pages
[git.ikiwiki.info.git] / IkiWiki / Plugin / opendiscussion.pm
index 60b193eca04fb08702a99077aa911f66dbc33705..4517ff88b6086964421324216d0a536b1bda771f 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$/i;
        return undef;
 }