[pLog-svn] r3143 - plog/trunk/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Mar 28 14:19:16 GMT 2006
Author: jondaley
Date: 2006-03-28 14:19:16 +0000 (Tue, 28 Mar 2006)
New Revision: 3143
Modified:
plog/trunk/class/dao/commentscommon.class.php
Log:
reverted rev 3141, because the blog_id field does exist, my install had broken data in it.
Modified: plog/trunk/class/dao/commentscommon.class.php
===================================================================
--- plog/trunk/class/dao/commentscommon.class.php 2006-03-28 13:51:59 UTC (rev 3142)
+++ plog/trunk/class/dao/commentscommon.class.php 2006-03-28 14:19:16 UTC (rev 3143)
@@ -40,7 +40,7 @@
class CommentsCommon extends Model
{
-// var $_blogSettings;
+ var $_blogSettings;
var $blogSettings;
var $timeDiff;
@@ -461,18 +461,16 @@
$prefix = $this->getPrefix();
$date = $row["date"];
$articleId = $row["article_id"];
-
- // load the post to get the blog in order to get the time difference
- $articles = new Articles();
- $article = $articles->getArticle( $row["article_id"]);
- $blog = $article->getBlogInfo();
- $blogSettings = $blog->getSettings();
-
+ $blogId = $row["blog_id"];
+
+ $blogs = new Blogs();
+ $blogInfo = $blogs->getBlogInfo( $blogId );
+ $blogSettings = $blogInfo->getSettings();
$timeDiff = $blogSettings->getValue( "time_offset" );
$date = Timestamp::getDateWithOffset( $date, $timeDiff );
$comment = new UserComment( $row["article_id"],
- $blog->_id,
+ $row['blog_id'],
$row["parent_id"],
$row["topic"],
$row["text"],
More information about the pLog-svn
mailing list