aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-29 22:34:42 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-29 22:34:42 +0000
commitf371f2f2d817a7928bb989cb22d0519ebbd79391 (patch)
treeb1f448d8c3b54206fd977442d76ed544a7f287e1 /IkiWiki
parent0931723fab9b16ad5a3c3b617a0e0c6f460d832f (diff)
downloadikiwiki-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.pm7
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 (@) { #{{{