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