Standardising XHR responses to utf-8 and indenting

darcs-hash:20081211211814-efd22-a41a2b123fcd08945370e868431dc1b2feda4dfe.gz
This commit is contained in:
Sarven Capadisli 2008-12-11 16:18:14 -05:00
parent 8664278d71
commit 8dd513a8e4
5 changed files with 7 additions and 7 deletions

View File

@ -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)));
}
}
}
}

View 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 {
}
}
}
}

View 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');

View File

@ -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');

View File

@ -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');