]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/table.pm
git: change calling convention of safe_git to have named arguments
[git.ikiwiki.info.git] / IkiWiki / Plugin / table.pm
index 96d63f455f886e9111f0e7bd26558b020c1de61b..f3c425a37dacd9d1389f0c53a0d7fbc52469c70b 100644 (file)
@@ -16,6 +16,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
                plugin => {
                        safe => 1,
                        rebuild => undef,
+                       section => "widget",
                },
 }
 
                },
 }
 
@@ -39,6 +40,9 @@ sub preprocess (@) {
                # scan that file too.
                return unless exists $params{file};
 
                # scan that file too.
                return unless exists $params{file};
 
+               # Preprocess in scan-only mode.
+               IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
+
                IkiWiki::run_hooks(scan => sub {
                        shift->(
                                page => $params{page},
                IkiWiki::run_hooks(scan => sub {
                        shift->(
                                page => $params{page},
@@ -46,9 +50,6 @@ sub preprocess (@) {
                        );
                });
 
                        );
                });
 
-               # Preprocess in scan-only mode.
-               IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
-
                return;
        }
 
                return;
        }