and instead show an empty graph.
return "[[postsparkline error $@]]";
}
+ if (! @data) {
+ # generate an empty graph
+ push @data, 0 foreach 1..$params{max};
+ }
+
my $color=exists $params{color} ? "($params{color})" : "";
delete $params{pages};
* Removed manual ctime statting code, and just have the calendar plugin use
%pagectime.
* Ikiwiki has moved into a git repository.
+ * postsparkline: Avoid a confusing error message if no pages match
+ and instead show an empty graph.
- -- Joey Hess <joeyh@debian.org> Wed, 24 Oct 2007 22:19:31 -0400
+ -- Joey Hess <joeyh@debian.org> Wed, 24 Oct 2007 22:58:51 -0400
ikiwiki (2.10) unstable; urgency=low