]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/opendiscussion.pm
web commit by http://willu.myopenid.com/: Add fix for OpenID and reCaptcha plugin
[git.ikiwiki.info.git] / IkiWiki / Plugin / opendiscussion.pm
1 #!/usr/bin/perl
2 package IkiWiki::Plugin::opendiscussion;
4 use warnings;
5 use strict;
6 use IkiWiki 2.00;
8 sub import { #{{{
9         hook(type => "canedit", id => "opendiscussion", call => \&canedit);
10 } # }}}
12 sub canedit ($$) { #{{{
13         my $page=shift;
14         my $cgi=shift;
15         my $session=shift;
17         my $discussion=gettext("discussion");
18         return "" if $page=~/(\/|^)\Q$discussion\E$/;
19         return undef;
20 } #}}}
22 1