Skip to content

Commit

Permalink
fix #156 売上集計CSVダウンロードの不具合
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Aug 16, 2018
1 parent 8d71efa commit d7cfc9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/class/pages/LC_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public function sendResponse()
*/
public function sendResponseCSV($file_name, $data)
{
$this->objDisplay->prepare($this);
$this->objDisplay->addHeader('Content-disposition', "attachment; filename=${file_name}");
$this->objDisplay->addHeader('Content-type', "application/octet-stream; name=${file_name}");
$this->objDisplay->addHeader('Cache-Control', '');
Expand Down Expand Up @@ -444,7 +443,7 @@ public function doValidToken($is_admin = false)
if (!SC_Helper_Session_Ex::isValidToken(false)) {
SC_Utils_Ex::sfDispError(INVALID_MOVE_ERRORR);
SC_Response_Ex::actionExit();
}
}
}
} else {
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
Expand Down

0 comments on commit d7cfc9c

Please sign in to comment.