diff options
author | Zach Copley <zach@controlyourself.ca> | 2008-11-23 16:13:48 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2008-11-23 16:13:48 -0500 |
commit | 8d8bc706d85ce3106c88175508b89b7abe2b9aa9 (patch) | |
tree | 70182c9c50fa50353ab96276833f530b81f90e00 /actions | |
parent | 63a1b9151acba9af41aedc66422775e5e6bc8881 (diff) |
Allow the toggling of XMLWriter's indenting on and off
IE needs and unindented XML response in for ajax calls.
darcs-hash:20081123211348-7b5ce-426c07ee1d1884c691b659e8a9b359bb95afc61e.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/newnotice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index 3c9c499c2..a24925ec3 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -84,7 +84,7 @@ class NewnoticeAction extends Action { common_broadcast_notice($notice); if ($this->boolean('ajax')) { - common_start_html('text/xml;charset=utf-8'); + common_start_html('text/xml;charset=utf-8', false); common_element_start('head'); common_element('title', null, _('Notice posted')); common_element_end('head'); @@ -107,7 +107,7 @@ class NewnoticeAction extends Action { } function ajax_error_msg($msg) { - common_start_html('text/xml;charset=utf-8'); + common_start_html('text/xml;charset=utf-8', false); common_element_start('head'); common_element('title', null, _('Ajax Error')); common_element_end('head'); |