]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/map.pm
Merge remote branch 'remotes/smcv/ready/htmlbalance'
[ikiwiki.git] / IkiWiki / Plugin / map.pm
index 634b0e4d6794a2d52179f561d26f8ea4bb8ac0cc..ce3ac1d24e93be888ca9e81f597f55d8b2f41424 100644 (file)
@@ -21,6 +21,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
+                       section => "widget",
                },
 }
 
@@ -36,7 +37,8 @@ sub preprocess (@) {
 
        # Get all the items to map.
        my %mapitems;
-       foreach my $page (use_pagespec($params{page}, $params{pages}, deptype => $deptype)) {
+       foreach my $page (pagespec_match_list($params{page}, $params{pages},
+                                       deptype => $deptype)) {
                if (exists $params{show} && 
                    exists $pagestate{$page} &&
                    exists $pagestate{$page}{meta}{$params{show}}) {