You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/12/09 22:08:29 UTC

svn commit: r724894 - in /incubator/shindig/trunk/php/src/social/converters: OutputAtomConverter.php OutputXmlConverter.php

Author: chabotc
Date: Tue Dec  9 13:08:29 2008
New Revision: 724894

URL: http://svn.apache.org/viewvc?rev=724894&view=rev
Log:
Fixes errornous extra entry element in the xml and atom responses

Modified:
    incubator/shindig/trunk/php/src/social/converters/OutputAtomConverter.php
    incubator/shindig/trunk/php/src/social/converters/OutputXmlConverter.php

Modified: incubator/shindig/trunk/php/src/social/converters/OutputAtomConverter.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/converters/OutputAtomConverter.php?rev=724894&r1=724893&r2=724894&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/converters/OutputAtomConverter.php (original)
+++ incubator/shindig/trunk/php/src/social/converters/OutputAtomConverter.php Tue Dec  9 13:08:29 2008
@@ -115,7 +115,7 @@
       $this->addNode($entry, 'updated', $updatedAtom);
       $content = $this->addNode($entry, 'content', '', array('type' => 'application/xml'));
       // addData loops through the responseItem data recursively creating a matching XML structure
-      $this->addData($content, $requestType, $data, self::$osNameSpace);
+      $this->addData($content, $requestType, $data['entry'], self::$osNameSpace);
     }
     $xml = $doc->saveXML();
     if ($responseItem->getResponse() instanceof RestfulCollection) {

Modified: incubator/shindig/trunk/php/src/social/converters/OutputXmlConverter.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/converters/OutputXmlConverter.php?rev=724894&r1=724893&r2=724894&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/converters/OutputXmlConverter.php (original)
+++ incubator/shindig/trunk/php/src/social/converters/OutputXmlConverter.php Tue Dec  9 13:08:29 2008
@@ -60,7 +60,7 @@
       // Single entry = Xml:Entry	
       $entry = $this->addNode($doc, 'response', '');
       // addData loops through the responseItem data recursively creating a matching XML structure
-      $this->addData($entry, $requestType, $data);
+      $this->addData($entry, 'entry', $data['entry']);
     }
     $xml = $doc->saveXML();
     echo $xml;