Skip to content

Commit

Permalink
Merge branch 'MDL-71338-310' of git://github.com/paulholden/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_310_STABLE
  • Loading branch information
snake committed Apr 15, 2021
2 parents 5566bfe + 416b25f commit 6958a07
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions admin/tool/usertours/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,17 +438,7 @@ protected function export_tour($id) {
$filename = 'tour_export_' . $tour->get_id() . '_' . time() . '.json';

// Force download.
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0');
header('Expires: ' . gmdate('D, d M Y H:i:s', 0) . 'GMT');
header('Pragma: no-cache');
header('Accept-Ranges: none');
header('Content-disposition: attachment; filename=' . $filename);
header('Content-length: ' . strlen($exportstring));
header('Content-type: text/calendar; charset=utf-8');

echo $exportstring;
die;
send_file($exportstring, $filename, 0, 0, true, true);
}

/**
Expand Down

0 comments on commit 6958a07

Please sign in to comment.