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