X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/584fe78075793b2b5dc2992125e88188cae0d1c7..ab75c0323bc584203a2b4a507c2a2012523354d0:/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;