]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/calendar.pm
calendar, inline, map: don't pre-join dependencies
[ikiwiki.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;
 }