humansize moved to filecheck
It's not used there, but it makes sense to keep it there as it's the inverse of parsesize.master
parent
8709ec2482
commit
b9efeba972
|
@ -277,7 +277,7 @@ sub attachment_list ($) { #{{{
|
|||
push @ret, {
|
||||
"field-select" => '<input type="checkbox" name="attachment_select" value="'.$f.'" />',
|
||||
link => htmllink($page, $page, $f, noimageinline => 1),
|
||||
size => humansize((stat(_))[7]),
|
||||
size => IkiWiki::Plugin::filecheck::humansize((stat(_))[7]),
|
||||
mtime => displaytime($IkiWiki::pagemtime{$f}),
|
||||
mtime_raw => $IkiWiki::pagemtime{$f},
|
||||
};
|
||||
|
|
|
@ -53,6 +53,7 @@ sub parsesize ($) { #{{{
|
|||
return $base;
|
||||
} #}}}
|
||||
|
||||
# This is provided for other plugins that want to convert back the other way.
|
||||
sub humansize ($) { #{{{
|
||||
my $size=shift;
|
||||
|
||||
|
|
Loading…
Reference in New Issue