From 983d387dd51356a2c225bb51b034ab3a3ebe2021 Mon Sep 17 00:00:00 2001 From: Moritz Flucht Date: Sat, 11 Jun 2011 14:02:45 +0200 Subject: [PATCH] added charset header in ajax mode --- assets/snippets/ajaxSearch/ajaxSearchPopup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/snippets/ajaxSearch/ajaxSearchPopup.php b/assets/snippets/ajaxSearch/ajaxSearchPopup.php index ac05ecd2a8..ef794b98b1 100644 --- a/assets/snippets/ajaxSearch/ajaxSearchPopup.php +++ b/assets/snippets/ajaxSearch/ajaxSearchPopup.php @@ -6,7 +6,7 @@ * * @author Coroico - www.modx.wangba.fr * @version 1.9.2 -* @date 05/12/2010 +* @date 11/06/2011 * */ @@ -55,8 +55,8 @@ function parseUserConfig($ucfg) { if ($dcfg['version'] != AS_VERSION) return "

AjaxSearch error: Version number mismatch. Check the content of the default configuration file!

"; $as = new AjaxSearch(); $output = $as->run($tstart, $dcfg); + header("Content-type: text/html; charset=".$modx->getConfig('modx_charset')); } echo $output; } - ?> \ No newline at end of file