aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-06-15 19:48:49 -0400
committerJoey Hess <joey@kitenet.net>2011-06-15 19:48:49 -0400
commit54672a313049aa0c0a3f14f7ee257c0200e82716 (patch)
tree72ef1f761ff08dfa4d1e955a8e9b8366f1ab631d
parentc901e1e80c49a4907acf9a7960822123d49f9573 (diff)
downloadikiwiki-54672a313049aa0c0a3f14f7ee257c0200e82716.tar
ikiwiki-54672a313049aa0c0a3f14f7ee257c0200e82716.tar.gz
bugfixes
Make sure staged attachments sort as earlier, even if they're not really.
-rw-r--r--IkiWiki/Plugin/attachment.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm
index 9a4af4f2b..6004a0982 100644
--- a/IkiWiki/Plugin/attachment.pm
+++ b/IkiWiki/Plugin/attachment.pm
@@ -94,7 +94,7 @@ sub formbuilder_setup (@) {
# Add all the javascript used by the attachments interface.
require IkiWiki::Plugin::toggle;
my $js=IkiWiki::Plugin::toggle::include_javascript($params{page});
- $js.='<link rel="stylesheet" href="'.urlto("ikiwiki/jquery-ui.min.css", $params{page}).' id="theme">'."\n";
+ $js.='<link rel="stylesheet" href="'.urlto("ikiwiki/jquery-ui.min.css", $params{page}).'" id="theme">'."\n";
my @jsfiles=qw{jquery.min jquery-ui.min
jquery.tmpl.min jquery.iframe-transport
jquery.fileupload jquery.fileupload-ui
@@ -354,7 +354,7 @@ sub attachment_list ($) {
my $base=IkiWiki::basename($file);
my $f=$loc.$base;
$attachments{$f}={
- $std->($f, (stat($file))[9], stored_msg(), (stat(_))[7]),
+ $std->($f, (stat($file))[9]*2, stored_msg(), (stat(_))[7]),
link => $base,
}
}