diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 17:11:29 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 17:11:29 -0400 |
commit | 5bcdc39999025062d201ae16babc0eabc2f4d976 (patch) | |
tree | fd1e6bbe54e7a74ebb62068a641ba7821deed740 /IkiWiki/Plugin/inline.pm | |
parent | fc445f6b70421ffc00cc414b92b038f73804cbc1 (diff) | |
download | ikiwiki-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/inline.pm')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index b566d960f..a501566b5 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -251,7 +251,9 @@ sub preprocess_inline (@) { # Explicitly add all currently displayed pages as dependencies, so # that if they are removed or otherwise changed, the inline will be # sure to be updated. - add_depends($params{page}, $#list >= $#feedlist ? \@list : \@feedlist); + foreach my $p ($#list >= $#feedlist ? @list : @feedlist) { + add_depends($params{page}, $p); + } if ($feeds && exists $params{feedpages}) { @feedlist=pagespec_match_list(\@feedlist, $params{feedpages}, location => $params{page}); |