[pLog-svn] r2851 - plog/trunk/class/net
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Jan 24 03:10:51 GMT 2006
Author: jondaley
Date: 2006-01-24 03:10:50 +0000 (Tue, 24 Jan 2006)
New Revision: 2851
Modified:
plog/trunk/class/net/baserequestgenerator.class.php
plog/trunk/class/net/linkparser.class.php
Log:
starting to add blogdomain code. this stuff doesn't affect anything, so I can add it first, before I have finished debugging everything
Modified: plog/trunk/class/net/baserequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/baserequestgenerator.class.php 2006-01-24 03:07:43 UTC (rev 2850)
+++ plog/trunk/class/net/baserequestgenerator.class.php 2006-01-24 03:10:50 UTC (rev 2851)
@@ -81,6 +81,7 @@
$this->_subdomainsBaseUrl = str_replace( "{blogname}", $blogInfo->getMangledBlog(), $this->_subdomainsBaseUrl );
$ownerInfo = $blogInfo->getOwnerInfo();
$this->_subdomainsBaseUrl = str_replace( "{username}", Textfilter::urlize($ownerInfo->getUsername()), $this->_subdomainsBaseUrl );
+ $this->_subdomainsBaseUrl = str_replace( "{blogdomain}", $blogInfo->getValue("blog_domain"), $this->_subdomainsBaseUrl );
}
$this->_scriptName = $config->getValue( "script_name", DEFAULT_SCRIPT_NAME );
Modified: plog/trunk/class/net/linkparser.class.php
===================================================================
--- plog/trunk/class/net/linkparser.class.php 2006-01-24 03:07:43 UTC (rev 2850)
+++ plog/trunk/class/net/linkparser.class.php 2006-01-24 03:10:50 UTC (rev 2851)
@@ -23,6 +23,7 @@
'{blogname}' => '([_0-9a-zA-Z-]+)?',
'{blogid}' => '([0-9]+)?',
'{blogowner}' => '([_0-9a-zA-Z-]+)?',
+ '{blogdomain}' => '([0-9a-zA-Z-.]+)?',
'{op}' => '([_0-9a-z-]+)?',
'{year}' => '([0-9]{4})?',
'{month}' => '([0-9]{2})?',
More information about the pLog-svn
mailing list