]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
when autogenerating a dir naem, include "feed/" in it
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index 7360ca998f29757032955d343122ab2cf32002e8..5e54c5674acb36b96de4960fefc8c05682d6a0d0 100644 (file)
@@ -567,11 +567,7 @@ sub cgi () { #{{{
        
        my $q=CGI->new;
        
-       if (exists $hooks{cgi}) {
-               foreach my $id (keys %{$hooks{cgi}}) {
-                       $hooks{cgi}{$id}{call}->($q);
-               }
-       }
+       run_hooks(cgi => sub { shift->($q) });
        
        my $do=$q->param('do');
        if (! defined $do || ! length $do) {