]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/calendar.pm
Merge commit 'remotes/smcv/ready/remove-pagespec-merge'
[git.ikiwiki.info.git] / IkiWiki / Plugin / calendar.pm
index fe4b16072131eea5571a86d75c65a7a117bb3efc..5d16dff75ba7a98a68c3fc8c94d9d9378cb11732 100644 (file)
@@ -211,8 +211,10 @@ EOF
        # matching the pagespec are added or removed.
        add_depends($params{page}, $params{pages});
        # Explicitly add all currently linked pages as dependencies, so
-        # that if they are removed, the calendar will be sure to be updated.
-        add_depends($params{page}, join(" or ", @list));
+       # that if they are removed, the calendar will be sure to be updated.
+       foreach my $p (@list) {
+               add_depends($params{page}, $p);
+       }
 
        return $calendar;
 }