]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
change plugin interface to use named parameters for flexability
[ikiwiki.git] / IkiWiki / Render.pm
index be6e6d1cbe8b5e09b0c5e626bb6d8c44023e7519..f90f16335ead61cf034b4f78da8872b775fd6dd2 100644 (file)
@@ -134,12 +134,12 @@ sub preprocess ($$) { #{{{
                if (length $escape) {
                        return "[[$command $params]]";
                }
-               elsif (exists $plugins{preprocess}{$command}) {
+               elsif (exists $hooks{preprocess}{$command}) {
                        my %params;
                        while ($params =~ /(\w+)=\"([^"]+)"(\s+|$)/g) {
                                $params{$1}=$2;
                        }
-                       return $plugins{preprocess}{$command}->(page => $page, %params);
+                       return $hooks{preprocess}{$command}{call}->(page => $page, %params);
                }
                else {
                        return "[[$command not processed]]";