projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a4750b
)
s//bad//invalid// # jonas=
author
Joey Hess
<joey@gnu.kitenet.net>
Sun, 19 Jul 2009 18:13:57 +0000
(20:13 +0200)
committer
Joey Hess
<joey@gnu.kitenet.net>
Sun, 19 Jul 2009 18:13:57 +0000
(20:13 +0200)
IkiWiki/Plugin/sparkline.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/sparkline.pm
b/IkiWiki/Plugin/sparkline.pm
index 458192695322317d5e0f69a860476758675987d5..c1f016ffd0e7055bae3f5ba72f9f04b643285c01 100644
(file)
--- a/
IkiWiki/Plugin/sparkline.pm
+++ b/
IkiWiki/Plugin/sparkline.pm
@@
-75,7
+75,7
@@
sub preprocess (@) {
my ($x, $y, $color, $diameter, $text, $location)=
split(/\s*,\s*/, $value);
if (! defined $diameter || $diameter < 0) {
my ($x, $y, $color, $diameter, $text, $location)=
split(/\s*,\s*/, $value);
if (! defined $diameter || $diameter < 0) {
- error gettext("
ba
d featurepoint diameter");
+ error gettext("
invali
d featurepoint diameter");
}
$x=int($x);
$y=int($y);
}
$x=int($x);
$y=int($y);
@@
-85,7
+85,7
@@
sub preprocess (@) {
if (defined $location) {
$location=$locmap{$location};
if (! defined $location) {
if (defined $location) {
$location=$locmap{$location};
if (! defined $location) {
- error gettext("
ba
d featurepoint location");
+ error gettext("
invali
d featurepoint location");
}
}
$php.=qq{\$sparkline->SetFeaturePoint($x, $y, '$color', $diameter};
}
}
$php.=qq{\$sparkline->SetFeaturePoint($x, $y, '$color', $diameter};
@@
-101,7
+101,7
@@
sub preprocess (@) {
my $height=int($params{height} || 20);
if ($height < 2 || $height > 100) {
my $height=int($params{height} || 20);
if ($height < 2 || $height > 100) {
- error gettext("
ba
d height value");
+ error gettext("
invali
d height value");
}
if ($style eq "Bar") {
$php.=qq{\$sparkline->Render($height);\n};
}
if ($style eq "Bar") {
$php.=qq{\$sparkline->Render($height);\n};
@@
-112,7
+112,7
@@
sub preprocess (@) {
}
my $width=int($params{width});
if ($width < 2 || $width > 1024) {
}
my $width=int($params{width});
if ($width < 2 || $width > 1024) {
- error gettext("
ba
d width value");
+ error gettext("
invali
d width value");
}
$php.=qq{\$sparkline->RenderResampled($width, $height);\n};
}
}
$php.=qq{\$sparkline->RenderResampled($width, $height);\n};
}