bugfixes
parent
a61849e954
commit
49e7bc2535
|
@ -322,12 +322,13 @@ sub attachment_list ($) {
|
||||||
my $dir=attachment_holding_dir($page);
|
my $dir=attachment_holding_dir($page);
|
||||||
my $heldmsg=gettext("this attachment is not yet saved");
|
my $heldmsg=gettext("this attachment is not yet saved");
|
||||||
foreach my $file (glob("$dir/*")) {
|
foreach my $file (glob("$dir/*")) {
|
||||||
my $mtime=(stat($file))[9];
|
next unless -f $file;
|
||||||
my $f=$file;
|
my $mtime=(stat(_))[9];
|
||||||
$f=~s/^\Q$dir\E\///;
|
my $base=IkiWiki::basename($file);
|
||||||
|
my $f=$loc.$base;
|
||||||
$attachments{$f}={
|
$attachments{$f}={
|
||||||
$std->($page."/".$f, (stat($file))[9], (stat($file))[7]),
|
$std->($f, (stat($file))[9], (stat(_))[7]),
|
||||||
link => "<span title=\"$heldmsg\">$f</span>",
|
link => "<span title=\"$heldmsg\">$base</span>",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue