diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-11-30 18:15:33 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-11-30 18:15:33 -0500 |
commit | c5b554b9b23f7314f616746197a6c015f3c4aa49 (patch) | |
tree | b9465c0f4f18dad941ae56b2700ec3d55d54c78a /IkiWiki | |
parent | e104499f28f99408a6712aa603b9dd34e0b8471c (diff) | |
download | ikiwiki-c5b554b9b23f7314f616746197a6c015f3c4aa49.tar ikiwiki-c5b554b9b23f7314f616746197a6c015f3c4aa49.tar.gz |
inline: Avoid using %links to test for page existence
%links is populated even for just-deleted pages, so %pagesources
should be used for such tests instead.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 29729a414..93dc0149e 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -359,7 +359,7 @@ sub preprocess_inline (@) { if ($config{discussion}) { if ($page !~ /.*\/\Q$config{discussionpage}\E$/ && (length $config{cgiurl} || - exists $links{$page."/".$config{discussionpage}})) { + exists $pagesources{$page."/".$config{discussionpage}})) { $template->param(have_actions => 1); $template->param(discussionlink => htmllink($page, |