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;
}