aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/calendar.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-08-24 23:16:15 +0100
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-08-25 00:31:24 +0100
commite4cd168ebedd95585290c97ff42234344bfed46c (patch)
treefee0855aee3d2cad47b946119b6e3413bf16f4cf /IkiWiki/Plugin/calendar.pm
parent7227c2debfeef94b35f7d81f42900aa01820caa3 (diff)
downloadikiwiki-e4cd168ebedd95585290c97ff42234344bfed46c.tar
ikiwiki-e4cd168ebedd95585290c97ff42234344bfed46c.tar.gz
Allow add_depends to take an arrayref
Diffstat (limited to 'IkiWiki/Plugin/calendar.pm')
-rw-r--r--IkiWiki/Plugin/calendar.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm
index 5d16dff75..ce0719404 100644
--- a/IkiWiki/Plugin/calendar.pm
+++ b/IkiWiki/Plugin/calendar.pm
@@ -212,9 +212,7 @@ 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.
- foreach my $p (@list) {
- add_depends($params{page}, $p);
- }
+ add_depends($params{page}, \@list);
return $calendar;
}