simplifiy

master
Joey Hess 2009-04-23 16:40:45 -04:00
parent 85ae48b21e
commit 528f8f83ea
1 changed files with 1 additions and 2 deletions

View File

@ -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;
} }