diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-04 16:54:58 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-04 16:54:58 -0400 |
commit | ab575a4b6985d38969069757bb374aa8f1013019 (patch) | |
tree | 7e4bfd663468d31324e3e3249046f4f4bfa83bf2 /IkiWiki/Plugin | |
parent | ddd7a766e27128f971fceba900d73982c686afbd (diff) |
graphviz: Fix display of preexisting images in preview mode.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/graphviz.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm index bec122076..c91c92fec 100644 --- a/IkiWiki/Plugin/graphviz.pm +++ b/IkiWiki/Plugin/graphviz.pm @@ -79,12 +79,7 @@ sub render_graph (\%) { } } - if ($params{preview}) { - return "<img src=\"".urlto($dest, "")."\" />\n"; - } - else { - return "<img src=\"".urlto($dest, $params{destpage})."\" />\n"; - } + return "<img src=\"".urlto($dest, $params{destpage})."\" />\n"; } sub graph (@) { |