diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-04-23 16:40:45 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-04-23 16:40:45 -0400 |
commit | 528f8f83ea228ff64f1d05e30f555f75ac2f2ddd (patch) | |
tree | 7bac65bc2ac22afb8b1d13f44f69727309122f52 /IkiWiki | |
parent | 85ae48b21eed71eeace8cd093ce92b7399cba861 (diff) |
simplifiy
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/pagecount.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/pagecount.pm b/IkiWiki/Plugin/pagecount.pm index f8881a04b..1955603b0 100644 --- a/IkiWiki/Plugin/pagecount.pm +++ b/IkiWiki/Plugin/pagecount.pm @@ -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; } |