[pLog-svn] r2492 - in plog/trunk/class: action/admin dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Sep 19 07:04:48 GMT 2005
Author: oscar
Date: 2005-09-19 07:04:48 +0000 (Mon, 19 Sep 2005)
New Revision: 2492
Modified:
plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
plog/trunk/class/dao/bloginfo.class.php
plog/trunk/class/dao/blogs.class.php
Log:
added something that probably got lost in the merge process
Modified: plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2005-09-19 07:03:35 UTC (rev 2491)
+++ plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2005-09-19 07:04:48 UTC (rev 2492)
@@ -76,7 +76,7 @@
$this->_blogInfo->setSettings( $blogSettings );
$this->_blogInfo->setProperties( $this->_request->getValue( "properties" ));
$this->_blogInfo->setBlogCategoryId( $this->_request->getValue( "blogCategory" ));
- $this->_blogInfo->setMangledBlog( Textfilter::urlize( $this->_blogInfo->getBlog()));
+ $this->_blogInfo->setMangledBlogName( Textfilter::urlize( $this->_blogInfo->getBlog()));
// and now update the settings in the database
$blogs = new Blogs();
Modified: plog/trunk/class/dao/bloginfo.class.php
===================================================================
--- plog/trunk/class/dao/bloginfo.class.php 2005-09-19 07:03:35 UTC (rev 2491)
+++ plog/trunk/class/dao/bloginfo.class.php 2005-09-19 07:04:48 UTC (rev 2492)
@@ -27,6 +27,7 @@
var $_totalTrackbacks;
var $_ownerInfo;
var $_usersInfo;
+ var $_mangledBlog;
// the TemplateSet representing the template set used by the blog
var $_templateSet;
@@ -596,13 +597,26 @@
}
/**
+ * set the mangled name of this blog
+ *
+ * @param mangledBlog the new mangled blog name
+ */
+ function setMangledBlogName( $mangledBlog )
+ {
+ $this->_mangledBlog = $mangledBlog;
+ }
+
+ /**
@return the mangled name of this blog
*/
function getMangledBlogName()
{
- include_once( PLOG_CLASS_PATH."class/data/textfilter.class.php" );
- return( Textfilter::urlize( $this->getBlog()));
- }
+ // fill in the field if it hasn't been filled yet
+ if( $this->_mangledBlog === null )
+ $this->_mangledBlog = Textfilter::urlize( $this->getBlog());
+
+ return( $this->_mangledBlog );
+ }
/**
* @return whether this blog should be shown in the summary page
Modified: plog/trunk/class/dao/blogs.class.php
===================================================================
--- plog/trunk/class/dao/blogs.class.php 2005-09-19 07:03:35 UTC (rev 2491)
+++ plog/trunk/class/dao/blogs.class.php 2005-09-19 07:04:48 UTC (rev 2492)
@@ -258,6 +258,8 @@
$blogInfo->setTotalPosts( $row['num_posts'] );
$blogInfo->setTotalTrackbacks( $row['num_trackbacks'] );
$blogInfo->setTotalComments( $row['num_comments'] );
+ // mangled blog
+ $blogInfo->setMangledBlogName( $row['mangled_blog'] );
return $blogInfo;
}
More information about the pLog-svn
mailing list