projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pman.Gnumeric.js
[Pman.Core]
/
JsonToExcel.php
diff --git
a/JsonToExcel.php
b/JsonToExcel.php
index
2e854f1
..
75a24fe
100644
(file)
--- a/
JsonToExcel.php
+++ b/
JsonToExcel.php
@@
-28,7
+28,7
@@
class Pman_Core_JsonToExcel extends Pman
return true;
}
return true;
}
- function get()
+ function get(
$v, $opts=array()
)
{
$this->jerr("invalid get");
}
{
$this->jerr("invalid get");
}
@@
-72,11
+72,10
@@
class Pman_Core_JsonToExcel extends Pman
$workbook->close();
require_once 'File/Convert.php';
$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");
$fn = $fc->convert("application/vnd.ms-excel");
- $fc->serve('attachment',
$fn
); // can fix IE Mess
-
+ $fc->serve('attachment',
'excel-'.date('Y-m-d-H-i-s').'.xls'
); // can fix IE Mess
+ unlink($outfile2);
}
}
-
-
+
}
}