]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/listdirectives.pm
Comments (maybe not so helpful - sorry)
[git.ikiwiki.info.git] / IkiWiki / Plugin / listdirectives.pm
index be82b0495f4d3481a80cf9ca33e981adf6f49ae8..bd73f1a04e728638c19994c0d64a4f288a120150 100644 (file)
@@ -4,7 +4,7 @@ package IkiWiki::Plugin::listdirectives;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
 sub import {
        add_underlay("directives");
@@ -45,7 +45,7 @@ sub checkconfig () {
 sub needsbuild (@) {
        my $needsbuild=shift;
 
-       @fulllist = sort keys %{$IkiWiki::hooks{preprocess}};
+       @fulllist = grep { ! /^_/ } sort keys %{$IkiWiki::hooks{preprocess}};
        @shortlist = grep { ! $IkiWiki::hooks{preprocess}{$_}{shortcut} } @fulllist;
        $pluginstring = join(' ', @shortlist) . " : " . join(' ', @fulllist);