]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
web commit by VictorMoral
[git.ikiwiki.info.git] / IkiWiki.pm
index a39e317f574304fbbde0d49aaec9ac2c5c1612a1..7084e9627aa5258d3f3f9bc34d3b82f867d89c3e 100644 (file)
@@ -641,6 +641,8 @@ sub hook (@) { # {{{
        if (! exists $param{type} || ! ref $param{call} || ! exists $param{id}) {
                error "hook requires type, call, and id parameters";
        }
+
+       return if $param{no_override} && exists $hooks{$param{type}}{$param{id}};
        
        $hooks{$param{type}}{$param{id}}=\%param;
 } # }}}