diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-29 22:34:42 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-29 22:34:42 +0000 |
commit | f371f2f2d817a7928bb989cb22d0519ebbd79391 (patch) | |
tree | b1f448d8c3b54206fd977442d76ed544a7f287e1 /IkiWiki | |
parent | 0931723fab9b16ad5a3c3b617a0e0c6f460d832f (diff) | |
download | ikiwiki-f371f2f2d817a7928bb989cb22d0519ebbd79391.tar ikiwiki-f371f2f2d817a7928bb989cb22d0519ebbd79391.tar.gz |
* Fix problems with previewing in the graphviz plugin. Thanks,
HenrikBrixAndersen.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/graphviz.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm index ee97c71d1..fb3239227 100644 --- a/IkiWiki/Plugin/graphviz.pm +++ b/IkiWiki/Plugin/graphviz.pm @@ -69,7 +69,12 @@ sub render_graph (\%) { #{{{ } } - return "<img src=\"".urlto($dest, $params{page})."\" />\n"; + if ($params{preview}) { + return "<img src=\"".urlto($dest, "")."\" />\n"; + } + else { + return "<img src=\"".urlto($dest, $params{page})."\" />\n"; + } } #}}} sub graph (@) { #{{{ |