aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/attachment.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-12 14:29:56 -0400
committerJoey Hess <joey@kitenet.net>2010-06-12 14:29:56 -0400
commit9923f5db65f85485d10cb2b5a10c42bb36168de7 (patch)
tree551a0df66b5cb78aa36bf7cb04e7482f679f3e09 /IkiWiki/Plugin/attachment.pm
parentd5181a197732f1c6bb80fdf8c508568b8c4225c7 (diff)
downloadikiwiki-9923f5db65f85485d10cb2b5a10c42bb36168de7.tar
ikiwiki-9923f5db65f85485d10cb2b5a10c42bb36168de7.tar.gz
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.
Diffstat (limited to 'IkiWiki/Plugin/attachment.pm')
-rw-r--r--IkiWiki/Plugin/attachment.pm3
1 files changed, 1 insertions, 2 deletions
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" => '<input type="checkbox" name="attachment_select" value="'.$f.'" />',
link => htmllink($page, $page, $f, noimageinline => 1),