]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/postsparkline.pm
web commit from 83.222.23.243: poll vote (Accept only password logins)
[git.ikiwiki.info.git] / IkiWiki / Plugin / postsparkline.pm
index 6f7558bc44d2375afcfb3a6a38a7680fe3ffbb1b..ac7ad9d73b7c6fb6a5c7f26e05ce2b598ef6177d 100644 (file)
@@ -55,11 +55,15 @@ sub preprocess (@) { #{{{
        if ($@) {
                return "[[postsparkline error $@]]";
        }
+
+       my $color=exists $params{color} ? "($params{color})" : "";
+
        delete $params{pages};
        delete $params{formula};
        delete $params{ftime};
+       delete $params{color};
        return IkiWiki::Plugin::sparkline::preprocess(%params, 
-               map { $_ => "" } reverse @data);
+               map { $_.$color => "" } reverse @data);
 } # }}}
 
 sub perfoo ($@) {