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