Commit 8dd513a8 authored by Sarven Capadisli's avatar Sarven Capadisli

Standardising XHR responses to utf-8 and indenting

darcs-hash:20081211211814-efd22-a41a2b123fcd08945370e868431dc1b2feda4dfe.gz
parent 8664278d
......@@ -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
}
......@@ -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
}
......@@ -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');
......
......@@ -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');
......
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment