diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-30 00:20:11 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-30 00:20:11 +0000 |
commit | ab75c0323bc584203a2b4a507c2a2012523354d0 (patch) | |
tree | ff4f82fd125bb7976b74d88520bd3cb847fc814d /ikiwiki | |
parent | 584fe78075793b2b5dc2992125e88188cae0d1c7 (diff) |
* Add a run_hooks function for the common task of running all hooks of a
given type.
* Add a savestate hook.
* Don't put blog post forms on pages if there's no cgiurl set.
* Reformat front page.
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -68,11 +68,7 @@ sub getconfig () { #{{{ if (! $config{setup}) { loadplugins(); - if (exists $hooks{getopt}) { - foreach my $id (keys %{$hooks{getopt}}) { - $hooks{getopt}{$id}{call}->(); - } - } + run_hooks(getopt => sub { shift->() }); if (grep /^-/, @ARGV) { print STDERR "Unknown option: $_\n" foreach grep /^-/, @ARGV; |