]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix XML API output for several profile update methods that returned a <user> entry...
authorBrion Vibber <brion@pobox.com>
Mon, 24 Jan 2011 20:41:30 +0000 (12:41 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 24 Jan 2011 20:41:30 +0000 (12:41 -0800)
actions/apiaccountupdatedeliverydevice.php
actions/apiaccountupdateprofile.php
actions/apiaccountupdateprofilebackgroundimage.php
actions/apiaccountupdateprofilecolors.php
actions/apiaccountupdateprofileimage.php

index ec87c4c953b74e5fedcdcb44e0a09d1b58622b3d..a9ccb4fca8062aef3b8c848599d839a10753eb7d 100644 (file)
@@ -143,7 +143,7 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
 
         if ($this->format == 'xml') {
             $this->initDocument('xml');
-            $this->showTwitterXmlUser($twitter_user);
+            $this->showTwitterXmlUser($twitter_user, 'user', true);
             $this->endDocument('xml');
         } elseif ($this->format == 'json') {
             $this->initDocument('json');
index 163dac42d874907aaed4aedd4ec5c29873123835..d0b9abe9b79fffcf3b8d5dbb6e56574e094d4d69 100644 (file)
@@ -154,7 +154,7 @@ class ApiAccountUpdateProfileAction extends ApiAuthAction
 
         if ($this->format == 'xml') {
             $this->initDocument('xml');
-            $this->showTwitterXmlUser($twitter_user);
+            $this->showTwitterXmlUser($twitter_user, 'user', true);
             $this->endDocument('xml');
         } elseif ($this->format == 'json') {
             $this->initDocument('json');
index badd8db002a71d43d295a0d5f2c8bd798cc98eab..f26c30198d40335dec3139550ee616c3ac898d5f 100644 (file)
@@ -204,7 +204,7 @@ class ApiAccountUpdateProfileBackgroundImageAction extends ApiAuthAction
 
         if ($this->format == 'xml') {
             $this->initDocument('xml');
-            $this->showTwitterXmlUser($twitter_user);
+            $this->showTwitterXmlUser($twitter_user, 'user', true);
             $this->endDocument('xml');
         } elseif ($this->format == 'json') {
             $this->initDocument('json');
index 109fbf959e2f545ddf861caeceb1ed2fdb7f6646..4c102c4090f6f9fa1e5a9953811519e0a914f2a3 100644 (file)
@@ -188,7 +188,7 @@ class ApiAccountUpdateProfileColorsAction extends ApiAuthAction
 
         if ($this->format == 'xml') {
             $this->initDocument('xml');
-            $this->showTwitterXmlUser($twitter_user);
+            $this->showTwitterXmlUser($twitter_user, 'user', true);
             $this->endDocument('xml');
         } elseif ($this->format == 'json') {
             $this->initDocument('json');
index 6c53e2cbc1a2d0e98ee09ab379c586761134ee5a..986a8f3f1eed69c5c11d46dec84112b1e29458cb 100644 (file)
@@ -140,7 +140,7 @@ class ApiAccountUpdateProfileImageAction extends ApiAuthAction
 
         if ($this->format == 'xml') {
             $this->initDocument('xml');
-            $this->showTwitterXmlUser($twitter_user);
+            $this->showTwitterXmlUser($twitter_user, 'user', true);
             $this->endDocument('xml');
         } elseif ($this->format == 'json') {
             $this->initDocument('json');