[pLog-svn] r4018 - plog/branches/lifetype-1.1.1/class/net/xmlrpc

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Fri Sep 22 17:27:46 GMT 2006


Author: pwestbro
Date: 2006-09-22 17:27:45 +0000 (Fri, 22 Sep 2006)
New Revision: 4018

Modified:
   plog/branches/lifetype-1.1.1/class/net/xmlrpc/xmlrpcserver.class.php
Log:
Fixed bug http://bugs.lifetype.net/view.php?id=1059

Now the result of adding a resource, is a struct with the url to the
resource in the 'url' field of the response.


Modified: plog/branches/lifetype-1.1.1/class/net/xmlrpc/xmlrpcserver.class.php
===================================================================
--- plog/branches/lifetype-1.1.1/class/net/xmlrpc/xmlrpcserver.class.php	2006-09-22 12:17:54 UTC (rev 4017)
+++ plog/branches/lifetype-1.1.1/class/net/xmlrpc/xmlrpcserver.class.php	2006-09-22 17:27:45 UTC (rev 4018)
@@ -900,11 +900,13 @@
 	            $blogInfo = $blogsG->getBlogInfo( $blogid );
 	            $url = $blogInfo->getBlogRequestGenerator();
 
-	            $ret = $url->resourceDownloadLink( $resource );
+                $responseStruct               = array();
+
+	            $responseStruct['url'] = $url->resourceDownloadLink( $resource );
 	
 				$this->setResponseCharset( $blogInfo );
 
-	            return $ret;
+	            return $responseStruct;
 	        } 
 			else {
 	            return new IXR_Error(-1, 'You did not provide the correct password');



More information about the pLog-svn mailing list