simplifiy
parent
85ae48b21e
commit
528f8f83ea
|
@ -26,8 +26,7 @@ sub preprocess (@) {
|
||||||
# register a dependency.
|
# register a dependency.
|
||||||
add_depends($params{page}, $params{pages});
|
add_depends($params{page}, $params{pages});
|
||||||
|
|
||||||
my @pages=keys %pagesources;
|
my @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page})
|
||||||
@pages=pagespec_match_list(\@pages, $params{pages}, location => $params{page})
|
|
||||||
if $params{pages} ne "*"; # optimisation;
|
if $params{pages} ne "*"; # optimisation;
|
||||||
return $#pages+1;
|
return $#pages+1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue