From: Joey Hess Date: Sat, 6 Feb 2010 21:12:29 +0000 (-0500) Subject: ensure opendiscussion hook is always called before lockedit X-Git-Tag: 3.20100212~57 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e33a65719a58a65201c1c742f544f5cab38ad23c;p=ikiwiki.git ensure opendiscussion hook is always called before lockedit This was only ordered ok due to luck before. --- 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 () {