calendar, inline, map: don't pre-join dependencies
[ikiwiki.git] / IkiWiki / Plugin / calendar.pm
index c25893f726ca96870bdb34389b9ab736c3dee745..5d16dff75ba7a98a68c3fc8c94d9d9378cb11732 100644 (file)
@@ -212,7 +212,9 @@ EOF
        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));
+       foreach my $p (@list) {
+               add_depends($params{page}, $p);
+       }
 
        return $calendar;
 }