[pLog-svn] r2052 - plog/branches/plog-1.0.1/class/net

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon May 23 09:08:40 GMT 2005


Author: oscar
Date: 2005-05-23 09:08:39 +0000 (Mon, 23 May 2005)
New Revision: 2052

Modified:
   plog/branches/plog-1.0.1/class/net/rawrequestgenerator.class.php
Log:
fix for issue 535 (http://bugs.plogworld.net/view.php?id=535)


Modified: plog/branches/plog-1.0.1/class/net/rawrequestgenerator.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/rawrequestgenerator.class.php	2005-05-23 09:03:59 UTC (rev 2051)
+++ plog/branches/plog-1.0.1/class/net/rawrequestgenerator.class.php	2005-05-23 09:08:39 UTC (rev 2052)
@@ -449,7 +449,7 @@
             $this->addParameter( "blogId", $blogId);
             $this->addParameter( "resource", $resource->getFileName());
 
-            $resourceLink = $this->getResourceServerUrl().$this->getRequest();
+            $resourceLink = $this->getResourceServerUrl().$this->getRequest( false );
 
             return $resourceLink;
         }
@@ -459,7 +459,7 @@
          *
          * @return A String object representing the request
          */
-        function getRequest()
+        function getRequest( $removeBlogIdIfNecessary = true )
         {
         	$request = "";
 
@@ -468,7 +468,7 @@
 			else
 				$amp = "&";
 				
-			if( !$this->getIncludeBlogId())
+			if( !$this->getIncludeBlogId() && $removeBlogIdIfNecessary )
 				$this->removeParameter( "blogId" );
 
         	foreach( $this->_params as $name => $value )




More information about the pLog-svn mailing list