From: Joey Hess Date: Sat, 12 Jun 2010 18:29:56 +0000 (-0400) Subject: attachment: Show files from underlay in attachments list. X-Git-Tag: 3.20100623~83 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/9923f5db65f85485d10cb2b5a10c42bb36168de7 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. --- 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), diff --git a/debian/changelog b/debian/changelog index 9a6b1361c..4e120c622 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ ikiwiki (3.20100611) UNRELEASED; urgency=low * openid: Add openid_realm and openid_cgiurl configuration options, useful in a few edge case setups. + * attachment: Show files from underlay in attachments list. -- Joey Hess Fri, 11 Jun 2010 13:39:15 -0400