]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
calendar: Add creation time limits to user's pagespec
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 16:30:10 +0000 (12:30 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 16:30:10 +0000 (12:30 -0400)
This avoids all calendars rebuilding when a new page is added
that will only show in one of them.

IkiWiki/Plugin/calendar.pm

index 71c671d67e1d1919593c5fa4b6cb2bcb425c930e..5aac958841793b3e92cf4b6fe2820c1aa8c4245e 100644 (file)
@@ -66,7 +66,8 @@ sub format_month (@) {
        my %params=@_;
 
        my %linkcache;
-       foreach my $p (pagespec_match_list($params{page}, $params{pages},
+       foreach my $p (pagespec_match_list($params{page}, 
+                               "creation_year($params{year}) and creation_month($params{month}) and ($params{pages})",
                                # add presence dependencies to update
                                # month calendar when pages are added/removed
                                deptype => deptype("presence"))) {