From ab75c0323bc584203a2b4a507c2a2012523354d0 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Jul 2006 00:20:11 +0000 Subject: * 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. --- ikiwiki | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ikiwiki') diff --git a/ikiwiki b/ikiwiki index a10876a96..28eba6f64 100755 --- a/ikiwiki +++ b/ikiwiki @@ -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; -- cgit v1.2.3