Permalink
Browse files

Use OS specific tmp dir instead of hardcoded one

git-svn-id: http://fusionpbx.googlecode.com/svn/trunk/fusionpbx@2501 e2954ef0-caed-11de-bd98-e341d93cc3cc
  • Loading branch information...
1 parent c468294 commit 2eade371adf742b72f074e2f0279118b5737f080 gerrit308 committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/xml_cdr/v_xml_cdr_import.php
View
2 app/xml_cdr/v_xml_cdr_import.php
@@ -352,7 +352,7 @@ function process_xml_cdr($db, $leg, $xml_string) {
ob_end_clean(); //clean the buffer
$time = "\n\n$insert_count inserts in: ".number_format($insert_time,5). " seconds.\n";
$time .= "Other processing time: ".number_format((microtime(true)-$time5-$insert_time),5). " seconds.\n";
- $fp = fopen('/tmp/xml_cdr_post.log', 'w');
+ $fp = fopen(sys_get_temp_dir().'/xml_cdr_post.log', 'w');
fwrite($fp, $content.$time);
fclose($fp);
}

0 comments on commit 2eade37

Please sign in to comment.