aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-06 16:12:29 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-06 16:12:29 -0500
commite33a65719a58a65201c1c742f544f5cab38ad23c (patch)
tree810d834178e0cdc7b1c265eb7d97ac4dd6297285 /IkiWiki
parenteda1d1321b7510d717c236b668e430bf1f656bed (diff)
downloadikiwiki-e33a65719a58a65201c1c742f544f5cab38ad23c.tar
ikiwiki-e33a65719a58a65201c1c742f544f5cab38ad23c.tar.gz
ensure opendiscussion hook is always called before lockedit
This was only ordered ok due to luck before.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/opendiscussion.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm
index 4517ff88b..4b91f5d83 100644
--- a/IkiWiki/Plugin/opendiscussion.pm
+++ b/IkiWiki/Plugin/opendiscussion.pm
@@ -7,7 +7,8 @@ use IkiWiki 3.00;
sub import {
hook(type => "getsetup", id => "opendiscussion", call => \&getsetup);
- hook(type => "canedit", id => "opendiscussion", call => \&canedit);
+ hook(type => "canedit", id => "opendiscussion", call => \&canedit,
+ first => 1);
}
sub getsetup () {