X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fsurvey.php;h=94b39b9b521c40f7e7bdbb4ca09dbe83d2ca0c2b;hb=330ffaa012073e66a5c94a6dce3ef5c8e32f67b8;hp=3ce85412c0b70a3310b961e150b6fe2c5d24ce80;hpb=c3c43c0ebe734e2b43b5d5fdb6010d08358bc34b;p=platal.git diff --git a/modules/survey.php b/modules/survey.php index 3ce8541..94b39b9 100644 --- a/modules/survey.php +++ b/modules/survey.php @@ -1,6 +1,6 @@ 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());