diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-12-05 21:17:11 +0100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-05 16:34:11 -0400 |
commit | bb8f76a4a04686def8cc6f21bcca80cb2cc3b2c9 (patch) | |
tree | 25dfd8bf7fa395c52e70110fdec500cd927d6951 /IkiWiki/Plugin | |
parent | 9b6e881f884de4a813f11582909a61e6cdff705c (diff) | |
download | ikiwiki-bb8f76a4a04686def8cc6f21bcca80cb2cc3b2c9.tar ikiwiki-bb8f76a4a04686def8cc6f21bcca80cb2cc3b2c9.tar.gz |
inline: base feed names on the included page name
Use the included page name rather than the including page name. This
allows us to allow feeds in nested inlines without duplicating feeds
with the same content under different (and stupid) names.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 765271564..b58c8780b 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -160,7 +160,7 @@ sub preprocess_inline (@) { my $rss=(($config{rss} || $config{allowrss}) && exists $params{rss}) ? yesno($params{rss}) : $config{rss}; my $atom=(($config{atom} || $config{allowatom}) && exists $params{atom}) ? yesno($params{atom}) : $config{atom}; my $quick=exists $params{quick} ? yesno($params{quick}) : 0; - my $feeds=! $nested && (exists $params{feeds} ? yesno($params{feeds}) : !$quick && ! $raw); + my $feeds=exists $params{feeds} ? yesno($params{feeds}) : !$quick && ! $raw; my $emptyfeeds=exists $params{emptyfeeds} ? yesno($params{emptyfeeds}) : 1; my $feedonly=yesno($params{feedonly}); if (! exists $params{show} && ! $archive) { @@ -269,7 +269,7 @@ sub preprocess_inline (@) { } $params{feedfile}=possibly_foolish_untaint($params{feedfile}); } - $feedbase=targetpage($params{destpage}, "", $params{feedfile}); + $feedbase=targetpage($params{page}, "", $params{feedfile}); my $feedid=join("\0", $feedbase, map { $_."\0".$params{$_} } sort keys %params); if (exists $knownfeeds{$feedid}) { |