summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-04-23 16:23:52 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-04-23 16:23:52 -0400
commit14d8df55ad6099e1785c6e568b6f020abca3290f (patch)
treeecb49878cdcf060290f82ec57a45ae271de98f36 /IkiWiki
parent2f96c49bd1826ecb213ae025ad456a714aa04863 (diff)
simplify
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/postsparkline.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm
index c2ebbc5eb..d2e5c2378 100644
--- a/IkiWiki/Plugin/postsparkline.pm
+++ b/IkiWiki/Plugin/postsparkline.pm
@@ -50,11 +50,10 @@ sub preprocess (@) {
add_depends($params{page}, $params{pages});
- my @list=pagespec_match_list(
- [ grep { $_ ne $params{page} } keys %pagesources],
- $params{pages}, location => $params{page});
-
- @list = sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} } @list;
+ my @list=sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} }
+ pagespec_match_list(
+ [ grep { $_ ne $params{page} } keys %pagesources],
+ $params{pages}, location => $params{page});
my @data=eval qq{IkiWiki::Plugin::postsparkline::formula::$formula(\\\%params, \@list)};
if ($@) {