]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/pagestats.pm
change how dependency types are specified to add_depends
[ikiwiki.git] / IkiWiki / Plugin / pagestats.pm
index afe4eeaf2e4b69855600ac5972e219292d1d2af4..cd0bdb08520e14f02c26a4be01bd4b558e0b0539 100644 (file)
@@ -36,12 +36,12 @@ sub preprocess (@) {
        my $style = ($params{style} or 'cloud');
        
        # Needs to update whenever a page is added or removed.
-       add_depends($params{page}, $params{pages}, exists => 1);
+       add_depends($params{page}, $params{pages}, deptype("presence"));
        # Also needs to update when any page with links changes, 
        # in case the links point to our displayed pages.
        # (Among limits this further.)
        add_depends($params{page}, exists $params{among} ? $params{among} : "*",
-               links => 1); 
+               deptype("links")); 
        
        my %counts;
        my $max = 0;