summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/graphviz.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-12 14:21:48 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-12 14:21:48 -0400
commitf7bdc2385d3ec8060f00d5ceb3b45f3cc4760e38 (patch)
tree852afeedb432084b4832263087a706a4e7bde408 /IkiWiki/Plugin/graphviz.pm
parentbe0f1a63a3ebd05967a8bc6b03a425a2118b17c4 (diff)
* Use forcebaseurl to make page previews be displayed with the html base
set to the destination page. This avoids need for hacks to munge the urls in preview mode, which fixes several bugs. * Several destpage fixes in plugins.
Diffstat (limited to 'IkiWiki/Plugin/graphviz.pm')
-rw-r--r--IkiWiki/Plugin/graphviz.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm
index fb3239227..ec48bad2c 100644
--- a/IkiWiki/Plugin/graphviz.pm
+++ b/IkiWiki/Plugin/graphviz.pm
@@ -29,10 +29,10 @@ sub render_graph (\%) { #{{{
# Use the sha1 of the graphviz code as part of its filename.
eval q{use Digest::SHA1};
error($@) if $@;
- my $dest=$params{page}."/graph-".
+ my $dest=$params{destpage}."/graph-".
IkiWiki::possibly_foolish_untaint(Digest::SHA1::sha1_hex($src)).
".png";
- will_render($params{page}, $dest);
+ will_render($params{destpage}, $dest);
if (! -e "$config{destdir}/$dest") {
my $pid;
@@ -73,7 +73,7 @@ sub render_graph (\%) { #{{{
return "<img src=\"".urlto($dest, "")."\" />\n";
}
else {
- return "<img src=\"".urlto($dest, $params{page})."\" />\n";
+ return "<img src=\"".urlto($dest, $params{destpage})."\" />\n";
}
} #}}}