]> sipb.mit.edu Git - ikiwiki.git/commitdiff
ensure opendiscussion hook is always called before lockedit
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 6 Feb 2010 21:12:29 +0000 (16:12 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 6 Feb 2010 21:12:29 +0000 (16:12 -0500)
This was only ordered ok due to luck before.

IkiWiki/Plugin/opendiscussion.pm

index 4517ff88b6086964421324216d0a536b1bda771f..4b91f5d8314e440920672759d0bc7c2cc394fda0 100644 (file)
@@ -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 () {