Skip to content

Commit

Permalink
Dev: TSV export function is using XML data from LSS export function
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Jul 24, 2018
1 parent af7f9f1 commit 1123ac2
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 360 deletions.
11 changes: 1 addition & 10 deletions application/controllers/admin/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -1295,16 +1295,7 @@ private function _exporttsv($surveyid)
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public"); // HTTP/1.0

$data = & LimeExpressionManager::TSVSurveyExport($surveyid);

$lines = array();
foreach ($data as $row) {
$lines[] = implode("\t", str_replace(array("\t", "\n", "\r"), array(" ", " ", " "), $row));
}
$output = implode("\n", $lines);
// echo "\xEF\xBB\xBF"; // UTF-8 BOM
echo $output;
return;
tsvSurveyExport($surveyid);
}

/**
Expand Down

0 comments on commit 1123ac2

Please sign in to comment.