Standardising XHR responses to utf-8 and indenting
darcs-hash:20081211211814-efd22-a41a2b123fcd08945370e868431dc1b2feda4dfe.gz
This commit is contained in:
parent
8664278d71
commit
8dd513a8e4
|
@ -67,7 +67,7 @@ class DisfavorAction extends Action {
|
||||||
$user->blowFavesCache();
|
$user->blowFavesCache();
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
if ($this->boolean('ajax')) {
|
||||||
common_start_html('text/xml');
|
common_start_html('text/xml;charset=utf-8', true);
|
||||||
common_element_start('head');
|
common_element_start('head');
|
||||||
common_element('title', null, _('Add to favorites'));
|
common_element('title', null, _('Add to favorites'));
|
||||||
common_element_end('head');
|
common_element_end('head');
|
||||||
|
|
|
@ -66,7 +66,7 @@ class FavorAction extends Action {
|
||||||
$user->blowFavesCache();
|
$user->blowFavesCache();
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
if ($this->boolean('ajax')) {
|
||||||
common_start_html('text/xml');
|
common_start_html('text/xml;charset=utf-8', true);
|
||||||
common_element_start('head');
|
common_element_start('head');
|
||||||
common_element('title', null, _('Disfavor favorite'));
|
common_element('title', null, _('Disfavor favorite'));
|
||||||
common_element_end('head');
|
common_element_end('head');
|
||||||
|
|
|
@ -86,7 +86,7 @@ class NewnoticeAction extends Action {
|
||||||
common_broadcast_notice($notice);
|
common_broadcast_notice($notice);
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
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_start('head');
|
||||||
common_element('title', null, _('Notice posted'));
|
common_element('title', null, _('Notice posted'));
|
||||||
common_element_end('head');
|
common_element_end('head');
|
||||||
|
|
|
@ -62,7 +62,7 @@ class SubscribeAction extends Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
if ($this->boolean('ajax')) {
|
||||||
common_start_html('text/xml');
|
common_start_html('text/xml;charset=utf-8', true);
|
||||||
common_element_start('head');
|
common_element_start('head');
|
||||||
common_element('title', null, _('Subscribed'));
|
common_element('title', null, _('Subscribed'));
|
||||||
common_element_end('head');
|
common_element_end('head');
|
||||||
|
|
|
@ -64,7 +64,7 @@ class UnsubscribeAction extends Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
if ($this->boolean('ajax')) {
|
||||||
common_start_html('text/xml');
|
common_start_html('text/xml;charset=utf-8', true);
|
||||||
common_element_start('head');
|
common_element_start('head');
|
||||||
common_element('title', null, _('Unsubscribed'));
|
common_element('title', null, _('Unsubscribed'));
|
||||||
common_element_end('head');
|
common_element_end('head');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user