projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d29ef9c
)
JsonToExcel.php
author
Alan Knowles
<alan@roojs.com>
Mon, 21 Jan 2013 04:19:23 +0000
(12:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 21 Jan 2013 04:19:23 +0000
(12:19 +0800)
JsonToExcel.php
patch
|
blob
|
history
diff --git
a/JsonToExcel.php
b/JsonToExcel.php
index
d58d3e2
..
740c6b9
100644
(file)
--- a/
JsonToExcel.php
+++ b/
JsonToExcel.php
@@
-72,9
+72,9
@@
class Pman_Core_JsonToExcel extends Pman
$workbook->close();
require_once 'File/Convert.php';
- $fc= new File_Convert($
this->
outfile2, "application/vnd.ms-excel");
+ $fc= new File_Convert($outfile2, "application/vnd.ms-excel");
$fn = $fc->convert("application/vnd.ms-excel");
- $fc->serve('attachment',
$outfile2
); // can fix IE Mess
+ $fc->serve('attachment',
'excel-'.date('Y-m-d-H-i-s').'.xls'
); // can fix IE Mess
unlink($outfile2);
}