Skip to content

Commit

Permalink
Merge pull request #215 from nobuhiko/fix#156-3
Browse files Browse the repository at this point in the history
fix #156 売上集計CSVダウンロードの不具合
  • Loading branch information
kiy0taka authored Aug 16, 2018
2 parents 4a0c4ab + d7cfc9c commit 7f048c3
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 7f048c3

Please sign in to comment.