X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fsurvey.php;h=199d96d946844f1996eb739abc4ee7d9fda937a4;hb=3cb500d5b2d9815049f82bc4bd35eb377fbd16d1;hp=3ce85412c0b70a3310b961e150b6fe2c5d24ce80;hpb=f7644ca9771d1a9dd59a761f4e00144eb5e46c5e;p=platal.git diff --git a/modules/survey.php b/modules/survey.php index 3ce8541..199d96d 100644 --- a/modules/survey.php +++ b/modules/survey.php @@ -109,7 +109,7 @@ class SurveyModule extends PLModule return PL_DO_AUTH; } if ($show == 'csv') { - header('Content-Type: text/csv; charset="UTF-8"'); + pl_content_headers("text/csv"); echo $survey->toCSV(); exit; } else { @@ -364,7 +364,7 @@ class SurveyModule extends PLModule function handler_ajax(&$page, $type) { $this->load('survey.inc.php'); - header('Content-Type: text/html; charset="UTF-8"'); + pl_content_headers("text/html"); if (Survey::isType($type)) { // when type has been chosen, the form is updated to fit exactly the type of question chosen $page->changeTpl('survey/edit_new.tpl', NO_SKIN); $page->assign('survey_types', Survey::getTypes());