avoid using pagespec_match_list here
I forgot to check if it was called from preprocess, and it is not; it's called by a format hook. If an error is thrown from a format hook, wiki build fails, so we don't want that.master
parent
14d8df55ad
commit
4030f75765
|
@ -56,9 +56,10 @@ sub genmap ($) {
|
||||||
|
|
||||||
# Get all the items to map.
|
# Get all the items to map.
|
||||||
my %mapitems = ();
|
my %mapitems = ();
|
||||||
foreach my $item (pagespec_match_list([keys %links],
|
foreach my $item (keys %links) {
|
||||||
$params{pages}, location => $params{page})) {
|
if (pagespec_match($item, $params{pages}, location => $params{page})) {
|
||||||
$mapitems{$item}=urlto($item, $params{destpage});
|
$mapitems{$item}=urlto($item, $params{destpage});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $dest=$params{page}."/linkmap.png";
|
my $dest=$params{page}."/linkmap.png";
|
||||||
|
|
Loading…
Reference in New Issue