attachment: Fix attachment file size display.
authorJoey Hess <joey@kitenet.net>
Tue, 21 Sep 2010 19:33:42 +0000 (15:33 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 21 Sep 2010 19:33:42 +0000 (15:33 -0400)
IkiWiki/Plugin/attachment.pm
debian/changelog

index f73e355ee3ecf49a005b1b31f8ca8567427998e6..bd93d37187454bf4168a9b632b2f1f7acc4d99d1 100644 (file)
@@ -242,7 +242,7 @@ sub attachment_list ($) {
                        push @ret, {
                                "field-select" => '<input type="checkbox" name="attachment_select" value="'.$f.'" />',
                                link => htmllink($page, $page, $f, noimageinline => 1),
-                               size => IkiWiki::Plugin::filecheck::humansize((stat(_))[7]),
+                               size => IkiWiki::Plugin::filecheck::humansize((stat($f))[7]),
                                mtime => displaytime($IkiWiki::pagemtime{$f}),
                                mtime_raw => $IkiWiki::pagemtime{$f},
                        };
index 24115c1772aa63bad6fed478333aa936f4a65d47..cae182f636ec5628fc51e5f713c87fe82aaf1860 100644 (file)
@@ -1,6 +1,7 @@
 ikiwiki (3.20100916) UNRELEASED; urgency=low
 
   * meta: Ensure that the url specified by xrds-location is absolute.
+  * attachment: Fix attachment file size display.
 
  -- Joey Hess <joeyh@debian.org>  Sun, 19 Sep 2010 20:13:06 -0400