attachment: Show files from underlay in attachments list.
authorJoey Hess <joey@kitenet.net>
Sat, 12 Jun 2010 18:29:56 +0000 (14:29 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 12 Jun 2010 18:29:56 +0000 (14:29 -0400)
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
debian/changelog

index 8c3ff887af16076e9f6d41126d11ddac47fb3567..53a65236cadbadb8ef7f7f40ac098590a31f2a0f 100644 (file)
@@ -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),
index 9a6b1361ca1792e26c7a2c50db15b683ee5a433d..4e120c62263c09c1097fec4c023ef62cd647b796 100644 (file)
@@ -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 <joeyh@debian.org>  Fri, 11 Jun 2010 13:39:15 -0400