Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'intrigeri/po' into po
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
opendiscussion.pm
diff --git
a/IkiWiki/Plugin/opendiscussion.pm
b/IkiWiki/Plugin/opendiscussion.pm
index c835f01061ea8a5364d369b768ebbada2fb6acfd..96a74aee832d31af0fd653a851f95b2044a56ded 100644
(file)
--- a/
IkiWiki/Plugin/opendiscussion.pm
+++ b/
IkiWiki/Plugin/opendiscussion.pm
@@
-6,9
+6,18
@@
use strict;
use IkiWiki 2.00;
sub import { #{{{
use IkiWiki 2.00;
sub import { #{{{
+ hook(type => "getsetup", id => "opendiscussion", call => \&getsetup);
hook(type => "canedit", id => "opendiscussion", call => \&canedit);
} # }}}
hook(type => "canedit", id => "opendiscussion", call => \&canedit);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => 0,
+ },
+} #}}}
+
sub canedit ($$) { #{{{
my $page=shift;
my $cgi=shift;
sub canedit ($$) { #{{{
my $page=shift;
my $cgi=shift;