Permalink
Browse files

Patch by Michael Lively Jr. <mlively@ft11.net>.

git-svn-id: http://svn.php.net/repository/pear/packages/Image_GraphViz/trunk@213127 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 6aa39c2 commit b217feb48e24ed488d529aee5035ea7c8b5459b7 @sebastianbergmann sebastianbergmann committed May 16, 2006
Showing with 1 addition and 2 deletions.
  1. +1 −2 GraphViz.php
View
@@ -202,7 +202,7 @@ function fetch($format = 'svg')
if ($file = $this->saveParsedGraph()) {
$outputfile = $file . '.' . $format;
$command = $this->graph['directed'] ? $this->dotCommand : $this->neatoCommand;
- $command .= ' -T' . escapeshellarg($format) . ' -o' . escapeshellarg($outputfile) . ' ' . escapeshellarg($dotfile);
+ $command .= ' -T' . escapeshellarg($format) . ' -o' . escapeshellarg($outputfile) . ' ' . escapeshellarg($file);
@`$command`;
@unlink($file);
@@ -240,7 +240,6 @@ function renderDotFile($dotfile, $outputfile, $format = 'svg')
$command .= ' -T' . escapeshellarg($format) . ' -o' . escapeshellarg($outputfile) . ' ' . escapeshellarg($dotfile);
@`$command`;
- @unlink($file);
if (file_exists($outputfile) && filemtime($outputfile) > $oldmtime) {
return TRUE;

0 comments on commit b217feb

Please sign in to comment.