aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/calendar.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-25 17:11:29 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-25 17:11:29 -0400
commit5bcdc39999025062d201ae16babc0eabc2f4d976 (patch)
treefd1e6bbe54e7a74ebb62068a641ba7821deed740 /IkiWiki/Plugin/calendar.pm
parentfc445f6b70421ffc00cc414b92b038f73804cbc1 (diff)
downloadikiwiki-5bcdc39999025062d201ae16babc0eabc2f4d976.tar
ikiwiki-5bcdc39999025062d201ae16babc0eabc2f4d976.tar.gz
Revert "Allow add_depends to take an arrayref"
This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change.
Diffstat (limited to 'IkiWiki/Plugin/calendar.pm')
-rw-r--r--IkiWiki/Plugin/calendar.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm
index ce0719404..5d16dff75 100644
--- a/IkiWiki/Plugin/calendar.pm
+++ b/IkiWiki/Plugin/calendar.pm
@@ -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}, \@list);
+ foreach my $p (@list) {
+ add_depends($params{page}, $p);
+ }
return $calendar;
}