]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
Oops, use the more recent (and less brittle) directory test.
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index a561e58e5314519b2236686f139dbbb4bcf4b430..5a2301af49232943d4f0889c0f3b9ba28f05396f 100644 (file)
@@ -26,7 +26,13 @@ sub preprocess (@) {
        # register a dependency.
        add_depends($params{page}, $params{pages});
        
-       my @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page});
+       my @pages;
+       if ($params{pages} eq "*") {
+               @pages=keys %pagesources;
+       }
+       else {
+               @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page});
+       }
        return $#pages+1;
 }