summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2008-12-11 16:18:14 -0500
committerSarven Capadisli <csarven@controlyourself.ca>2008-12-11 16:18:14 -0500
commit8dd513a8e434bb72f773dac75ec3124d2532d4a3 (patch)
tree2327216cddbb60d62b381aa45c400caf4ec4b317 /actions
parent8664278d71c89e01acc2929fd997348fc42cf2c8 (diff)
Standardising XHR responses to utf-8 and indenting
darcs-hash:20081211211814-efd22-a41a2b123fcd08945370e868431dc1b2feda4dfe.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/disfavor.php4
-rw-r--r--actions/favor.php4
-rw-r--r--actions/newnotice.php2
-rw-r--r--actions/subscribe.php2
-rw-r--r--actions/unsubscribe.php2
5 files changed, 7 insertions, 7 deletions
diff --git a/actions/disfavor.php b/actions/disfavor.php
index 6ac94d720..be208f65a 100644
--- a/actions/disfavor.php
+++ b/actions/disfavor.php
@@ -67,7 +67,7 @@ class DisfavorAction extends Action {
$user->blowFavesCache();
if ($this->boolean('ajax')) {
- common_start_html('text/xml');
+ common_start_html('text/xml;charset=utf-8', true);
common_element_start('head');
common_element('title', null, _('Add to favorites'));
common_element_end('head');
@@ -80,4 +80,4 @@ class DisfavorAction extends Action {
array('nickname' => $user->nickname)));
}
}
-} \ No newline at end of file
+}
diff --git a/actions/favor.php b/actions/favor.php
index 82b70a35b..aede32902 100644
--- a/actions/favor.php
+++ b/actions/favor.php
@@ -66,7 +66,7 @@ class FavorAction extends Action {
$user->blowFavesCache();
if ($this->boolean('ajax')) {
- common_start_html('text/xml');
+ common_start_html('text/xml;charset=utf-8', true);
common_element_start('head');
common_element('title', null, _('Disfavor favorite'));
common_element_end('head');
@@ -91,4 +91,4 @@ class FavorAction extends Action {
}
}
-} \ No newline at end of file
+}
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 8ac36320d..939c0ff9c 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -86,7 +86,7 @@ class NewnoticeAction extends Action {
common_broadcast_notice($notice);
if ($this->boolean('ajax')) {
- common_start_html('text/xml;charset=utf-8', false);
+ common_start_html('text/xml;charset=utf-8', true);
common_element_start('head');
common_element('title', null, _('Notice posted'));
common_element_end('head');
diff --git a/actions/subscribe.php b/actions/subscribe.php
index a032cf717..64abda004 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -62,7 +62,7 @@ class SubscribeAction extends Action {
}
if ($this->boolean('ajax')) {
- common_start_html('text/xml');
+ common_start_html('text/xml;charset=utf-8', true);
common_element_start('head');
common_element('title', null, _('Subscribed'));
common_element_end('head');
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index 08b3ae57d..98291e897 100644
--- a/actions/unsubscribe.php
+++ b/actions/unsubscribe.php
@@ -64,7 +64,7 @@ class UnsubscribeAction extends Action {
}
if ($this->boolean('ajax')) {
- common_start_html('text/xml');
+ common_start_html('text/xml;charset=utf-8', true);
common_element_start('head');
common_element('title', null, _('Unsubscribed'));
common_element_end('head');