From: Pascal Corpet Date: Wed, 23 Jun 2010 22:48:13 +0000 (+0200) Subject: Sets a cool name for result of surveys in csv format X-Git-Tag: xorg/1.0.0~63 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3cf01f9ec030eab2f26752cc8a90491f66b2a39d;p=platal.git Sets a cool name for result of surveys in csv format --- diff --git a/modules/survey.php b/modules/survey.php index 03829f0..15ee732 100644 --- a/modules/survey.php +++ b/modules/survey.php @@ -110,6 +110,7 @@ class SurveyModule extends PLModule } if ($show == 'csv') { pl_content_headers("text/csv"); + header('Content-Disposition: attachment; filename="'.addslashes($survey->getTitle()).'.csv"'); echo $survey->toCSV(); exit; } else {