# Use the sha1 of the graphviz code as part of its filename.
eval q{use Digest::SHA1};
error($@) if $@;
- my $dest=$params{destpage}."/graph-".
+ my $dest=$params{page}."/graph-".
IkiWiki::possibly_foolish_untaint(Digest::SHA1::sha1_hex($src)).
".png";
- will_render($params{destpage}, $dest);
+ will_render($params{page}, $dest);
if (! -e "$config{destdir}/$dest") {
my $pid;
my $file = bestlink($params{page}, $image);
- my $dir = $params{destpage};
+ my $dir = $params{page};
my $base = IkiWiki::basename($file);
eval q{use Image::Magick};
my $outfile = "$config{destdir}/$dir/${w}x${h}-$base";
$imglink = "$dir/${w}x${h}-$base";
- will_render($params{destpage}, $imglink);
+ will_render($params{page}, $imglink);
if (-e $outfile && (-M srcfile($file) >= -M $outfile)) {
$r = $im->Read($outfile);
}
}
- my $dest=$params{destpage}."/linkmap.png";
+ my $dest=$params{page}."/linkmap.png";
# Use ikiwiki's function to create the file, this makes sure needed
# subdirs are there and does some sanity checking.
- will_render($params{destpage}, $dest);
+ will_render($params{page}, $dest);
writefile($dest, $config{destdir}, "");
# Run dot to create the graphic and get the map data.
close OUT;
local $/=undef;
- my $ret="<object data=\"".urlto($dest, $params{page}).
+ my $ret="<object data=\"".urlto($dest, $params{destpage}).
"\" type=\"image/png\" usemap=\"#linkmap$mapnum\">\n".
<IN>.
"</object>";
# the base for its filename.
eval q{use Digest::SHA1};
error($@) if $@;
- my $fn=$params{destpage}."/sparkline-".
+ my $fn=$params{page}."/sparkline-".
IkiWiki::possibly_foolish_untaint(Digest::SHA1::sha1_hex($php)).
".png";
- will_render($params{destpage}, $fn);
+ will_render($params{page}, $fn);
if (! -e "$config{destdir}/$fn") {
my $pid;
my $digest = md5_hex($code, $height);
- my $imglink= $params->{destpage} . "/$digest.png";
- my $imglog = $params->{destpage} . "/$digest.log";
- will_render($params->{destpage}, $imglink);
- will_render($params->{destpage}, $imglog);
+ my $imglink= $params->{page} . "/$digest.png";
+ my $imglog = $params->{page} . "/$digest.log";
+ will_render($params->{page}, $imglink);
+ will_render($params->{page}, $imglog);
my $imgurl=urlto($imglink, $params->{destpage});
my $logurl=urlto($imglink, $params->{destpage});