X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/14a82190e10651051d394135a4f379bf1134726d..dcee0110582a93c0fe404b8fd4d9efdda263d42b:/IkiWiki/Plugin/teximg.pm diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm index fc890666a..5f9589fdd 100644 --- a/IkiWiki/Plugin/teximg.pm +++ b/IkiWiki/Plugin/teximg.pm @@ -70,9 +70,8 @@ sub create ($$$) { #{{{ my $digest = md5_hex($code, $height); - my $teximgdir = "/teximg"; - my $imglink = "$teximgdir/$digest.png"; - my $imglog = "$teximgdir/$digest.log"; + my $imglink= $params->{page} . "/$digest.png"; + my $imglog = $params->{page} . "/$digest.log"; will_render($params->{destpage}, $imglink); will_render($params->{destpage}, $imglog); @@ -83,12 +82,12 @@ sub create ($$$) { #{{{ $logurl = urlto($imglog, $params->{destpage}); } else { - $imgurl="$config{url}/$teximgdir/$digest.png"; - $logurl="$config{url}/$teximgdir/$digest.log"; + $imgurl="$params->{page}/$digest.png"; + $logurl="$params->{page}/$digest.log"; } if (-e "$config{destdir}/$imglink" || - gen_image($code, $height, $digest, $teximgdir)) { + gen_image($code, $height, $digest, $params->{page})) { return qq{}
 			.(exists $params->{alt} ? $params->{alt} : encode_entities($code))
 			.qq{};