]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
git: --getctime will now follow renames back to the original creation of a file.
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index 1955603b023d84315e6c9487ea095a93ca6a6afe..5a2301af49232943d4f0889c0f3b9ba28f05396f 100644 (file)
@@ -26,8 +26,13 @@ sub preprocess (@) {
        # register a dependency.
        add_depends($params{page}, $params{pages});
        
        # register a dependency.
        add_depends($params{page}, $params{pages});
        
-       my @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page})
-               if $params{pages} ne "*"; # optimisation;
+       my @pages;
+       if ($params{pages} eq "*") {
+               @pages=keys %pagesources;
+       }
+       else {
+               @pages=pagespec_match_list([keys %pagesources], $params{pages}, location => $params{page});
+       }
        return $#pages+1;
 }
 
        return $#pages+1;
 }