]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/graphviz.pm
releasing version 2.31.1
[git.ikiwiki.info.git] / IkiWiki / Plugin / graphviz.pm
index ee97c71d1d9e109fca01673766007e2f091ba438..fb32392279cbff0e0e4aa7ad434ce9b3a6acc03d 100644 (file)
@@ -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 (@) { #{{{