summaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-30 00:20:11 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-30 00:20:11 +0000
commitab75c0323bc584203a2b4a507c2a2012523354d0 (patch)
treeff4f82fd125bb7976b74d88520bd3cb847fc814d /ikiwiki
parent584fe78075793b2b5dc2992125e88188cae0d1c7 (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-xikiwiki6
1 files changed, 1 insertions, 5 deletions
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;