diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-23 20:01:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-23 20:01:26 -0400 |
commit | cb8d1c86425999eb3572326679fae9a033664150 (patch) | |
tree | 08cea19c0f50b5cc76d68895b0a945e724fe14a7 /IkiWiki/Plugin/graphviz.pm | |
parent | d2911a20a6913e46035a8731acafba6faf5997f9 (diff) |
revert destpage part of f7bdc2385
destpage does not normally need to be worried about when creating other files
as part of the process of rendering a page. Using destpage results in
inlined pages creating two copies of such files. It works to not use destpage
in this case because the inlining page depends on the source page, so if the
source page is modified or deleted the inlining page will be updated.
Diffstat (limited to 'IkiWiki/Plugin/graphviz.pm')
-rw-r--r-- | IkiWiki/Plugin/graphviz.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm index ec48bad2c..fe3559857 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{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; |