]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/map.pm
Merge commit 'schmonz/master' into cvs
[ikiwiki.git] / IkiWiki / Plugin / map.pm
index cc977024d07ccc37f89b2d533e88d99123ab4075..54146dc467bdcb513e426257a6fd0879005cd35a 100644 (file)
@@ -73,7 +73,9 @@ sub preprocess (@) {
        add_depends($params{page}, $params{pages});
        # Explicitly add all currently shown pages, to detect when pages
        # are removed.
-       add_depends($params{page}, [keys %mapitems]);
+       foreach my $item (keys %mapitems) {
+               add_depends($params{page}, $item);
+       }
 
        # Create the map.
        my $parent="";