mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
Extension '.xlsx' outside of gmdate()
This commit is contained in:
parent
ca5da99160
commit
e92d3a5284
@ -117,7 +117,7 @@ class SimpleXLSXGen {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
public function download() {
|
public function download() {
|
||||||
return $this->downloadAs( gmdate('YmdHi.xlsx') );
|
return $this->downloadAs( gmdate('YmdHi') . '.xlsx' );
|
||||||
}
|
}
|
||||||
public function downloadAs( $filename ) {
|
public function downloadAs( $filename ) {
|
||||||
$fh = fopen('php://memory','wb');
|
$fh = fopen('php://memory','wb');
|
||||||
|
Loading…
Reference in New Issue
Block a user