JsonToExcel.php
authorAlan Knowles <alan@roojs.com>
Mon, 21 Jan 2013 04:14:37 +0000 (12:14 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 Jan 2013 04:14:37 +0000 (12:14 +0800)
JsonToExcel.php

index 2e854f1..d58d3e2 100644 (file)
@@ -74,8 +74,8 @@ class Pman_Core_JsonToExcel extends Pman
         require_once 'File/Convert.php';
         $fc=  new File_Convert($this->outfile2, "application/vnd.ms-excel");
         $fn = $fc->convert("application/vnd.ms-excel"); 
-        $fc->serve('attachment',$fn); // can fix IE Mess
-          
+        $fc->serve('attachment',$outfile2); // can fix IE Mess
+        unlink($outfile2); 
     }