]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Catch a couple of missing XML namespace declarations on API XML output. Missing NS...
authorBrion Vibber <brion@pobox.com>
Fri, 18 Jun 2010 16:59:11 +0000 (09:59 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 18 Jun 2010 16:59:11 +0000 (09:59 -0700)
actions/apiaccountverifycredentials.php
actions/apisubscriptions.php

index ea61a3205945c12f3c10afc62ecbef0e31c3e08b..79416e9b262099df3e2cc4c228844a04a55363de 100644 (file)
@@ -75,7 +75,7 @@ class ApiAccountVerifyCredentialsAction 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 0ba324057e753d84cd22463d13f51584f5de60e9..63d65f2893ca51e37002153b9defd2eac4008d53 100644 (file)
@@ -206,7 +206,8 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
     {
         switch ($this->format) {
         case 'xml':
-            $this->elementStart('users', array('type' => 'array'));
+            $this->elementStart('users', array('type' => 'array',
+                                               'xmlns:statusnet' => 'http://status.net/schema/api/1/'));
             foreach ($this->profiles as $profile) {
                 $this->showProfile(
                     $profile,