]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Standardising XHR responses to utf-8 and indenting
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 11 Dec 2008 21:18:14 +0000 (16:18 -0500)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 11 Dec 2008 21:18:14 +0000 (16:18 -0500)
darcs-hash:20081211211814-efd22-a41a2b123fcd08945370e868431dc1b2feda4dfe.gz

actions/disfavor.php
actions/favor.php
actions/newnotice.php
actions/subscribe.php
actions/unsubscribe.php

index 6ac94d720ac48aeb09949630fd95ca81f4f0985b..be208f65ab2a3d1abd5c27315070e1fde11fc1e2 100644 (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)));
                }
        }
-}
\ No newline at end of file
+}
index 82b70a35b2fce14122c41d228cbe97b177b9d80e..aede32902e62bd287976771e8563f9f5d9070a4c 100644 (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
+}
index 8ac36320dedc1ccba3007fcc773bd028fd7a2aa4..939c0ff9c1829b23f68c6f80d1baaa57954da48e 100644 (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');
index a032cf71769278b83da547d6766531306bc3ac33..64abda00431c0d9fbcf3a060f17510ade1a44849 100644 (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');
index 08b3ae57d8210e8f822f48a9ab00b2280b6662de..98291e897ee198efeaf49b6cdcea811ca94ddc96 100644 (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');