diff options
author | Simon McVittie <smcv@debian.org> | 2012-04-06 17:05:26 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2012-04-06 17:05:26 +0100 |
commit | 258ee1bc3b9c43807064c771ebcb9ce2840d4264 (patch) | |
tree | 2f3dc9f533efd7253ef2ec07afa1386951e1aa68 /IkiWiki/Plugin/inline.pm | |
parent | 4a4610e66e7dd548843bdf69d2b59e612ebeabd3 (diff) | |
download | ikiwiki-258ee1bc3b9c43807064c771ebcb9ce2840d4264.tar ikiwiki-258ee1bc3b9c43807064c771ebcb9ce2840d4264.tar.gz |
trail, inline: treat pagenames as a list of literal names, not links
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index a50c4b7b7..8eb033951 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -211,9 +211,7 @@ sub preprocess_inline (@) { } } - @list = grep { $_ ne '' } - map { bestlink($params{page}, $_) } - split ' ', $params{pagenames}; + @list = split ' ', $params{pagenames}; if (yesno($params{reverse})) { @list=reverse(@list); @@ -222,6 +220,8 @@ sub preprocess_inline (@) { foreach my $p (@list) { add_depends($params{page}, $p, deptype($quick ? "presence" : "content")); } + + @list = grep { exists $pagesources{$_} } @list; } else { my $num=0; |