[pLog-svn] r1327 - plog/trunk/class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sat Mar 5 23:33:38 GMT 2005
Author: oscar
Date: 2005-03-05 23:33:38 +0000 (Sat, 05 Mar 2005)
New Revision: 1327
Modified:
plog/trunk/class/action/blogaction.class.php
Log:
subdomains with {blogname}.domain.com were not working very well
Modified: plog/trunk/class/action/blogaction.class.php
===================================================================
--- plog/trunk/class/action/blogaction.class.php 2005-03-05 23:33:06 UTC (rev 1326)
+++ plog/trunk/class/action/blogaction.class.php 2005-03-05 23:33:38 UTC (rev 1327)
@@ -130,18 +130,19 @@
if( $config->getValue( "subdomains_enabled" )) {
$subdomainInfo = Subdomains::getSubdomainInfoFromRequest();
- if( $subdomainInfo["username"] != "" && $this->_request->getValue( 'user' ) == "" )
- $this->_request->setValue( 'user', $subdomainInfo["username"] );
+ if( $subdomainInfo["username"] != "" && $this->_request->getValue( 'blogUserName' ) == "" )
+ $this->_request->setValue( 'blogUserName', $subdomainInfo["username"] );
if( $subdomainInfo["blogname"] != "" && $this->_request->getValue( 'blogName' ) == "" )
$this->_request->setValue( 'blogName', $subdomainInfo["blogname"] );
- $this->log->debug($subdomainInfo);
+ $this->log->debug("subdomain info username = ".$subdomainInfo["username"]);
+ $this->log->debug("subdomain info blogname = ".$subdomainInfo["blogname"]);
}
$blogId = $this->_request->getValue( 'blogId' );
$blogName = $this->_request->getValue( 'blogName' );
$userId = $this->_request->getValue( 'userId' );
- $userName = $this->_request->getValue( 'userName' );
+ $userName = $this->_request->getValue( 'blogUserName' );
// if there is a "blogId" parameter, it takes precedence over the
// "user" parameter.
More information about the pLog-svn
mailing list