From 9923f5db65f85485d10cb2b5a10c42bb36168de7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Jun 2010 14:29:56 -0400 Subject: attachment: Show files from underlay in attachments list. While those files cannot be removed or renamed, this allows easy downloading of them, and a new version can after all be uploaded. --- IkiWiki/Plugin/attachment.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index 8c3ff887a..53a65236c 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -225,8 +225,7 @@ sub attachment_list ($) { my @ret; foreach my $f (values %pagesources) { if (! defined pagetype($f) && - $f=~m/^\Q$loc\E[^\/]+$/ && - -e "$config{srcdir}/$f") { + $f=~m/^\Q$loc\E[^\/]+$/) { push @ret, { "field-select" => '', link => htmllink($page, $page, $f, noimageinline => 1), -- cgit v1.2.3