1 This patch gives CGI hooks access to the session object. This enables more
2 complicated CGI plugins (that require access control, for example). --Ethan
6 ===================================================================
7 --- IkiWiki/CGI.pm (revision 3946)
8 +++ IkiWiki/CGI.pm (working copy)
13 - run_hooks(cgi => sub { shift->($q) });
14 + run_hooks(cgi => sub { shift->($q, $session) });
17 my $do=$q->param('do');
18 Index: IkiWiki/Plugin/search.pm
19 ===================================================================
20 --- IkiWiki/Plugin/search.pm (revision 3946)
21 +++ IkiWiki/Plugin/search.pm (working copy)
30 if (defined $cgi->param('phrase') || defined $cgi->param("navi")) {
31 Index: IkiWiki/Plugin/poll.pm
32 ===================================================================
33 --- IkiWiki/Plugin/poll.pm (revision 3946)
34 +++ IkiWiki/Plugin/poll.pm (working copy)
36 return "<div class=poll>$ret</div>";
42 if (defined $cgi->param('do') && $cgi->param('do') eq "poll") {
43 my $choice=$cgi->param('choice');