aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-21 15:33:42 -0400
committerJoey Hess <joey@kitenet.net>2010-09-21 15:33:42 -0400
commit90bc68589e8c9e0243d563a9616701c946b2d3fd (patch)
tree793bf11c2bda0ddde36c9bfd7cecbb3ce37b613f /IkiWiki
parent608d595dfdde90b8eed41de5c096157df0cdd494 (diff)
downloadikiwiki-90bc68589e8c9e0243d563a9616701c946b2d3fd.tar
ikiwiki-90bc68589e8c9e0243d563a9616701c946b2d3fd.tar.gz
attachment: Fix attachment file size display.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/attachment.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm
index f73e355ee..bd93d3718 100644
--- a/IkiWiki/Plugin/attachment.pm
+++ b/IkiWiki/Plugin/attachment.pm
@@ -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},
};