Permalink
Browse files

Leftover.

git-svn-id: http://svn.php.net/repository/pear/packages/Image_GraphViz/trunk@151904 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ec32af8 commit 7b591b558e652af47291896f9b66fa5352f69ae6 @sebastianbergmann sebastianbergmann committed Feb 20, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 GraphViz.php
View
@@ -296,7 +296,7 @@ function save($file = '') {
$serialized_graph = serialize($this->graph);
if (empty($file)) {
- $file = tempnam('/tmp', 'graph_');
+ $file = System::mktemp('graph_');
}
if ($fp = @fopen($file, 'w')) {
@@ -405,7 +405,7 @@ function saveParsedGraph($file = '') {
if (!empty($parsedGraph)) {
if (empty($file)) {
- $file = System::mktemp('Image_GraphViz');
+ $file = System::mktemp('graph_');
}
if ($fp = @fopen($file, 'w')) {

0 comments on commit 7b591b5

Please sign in to comment.