[pLog-svn] r4999 - plog/branches/lifetype-1.2/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Mar 5 16:42:40 EST 2007


Author: oscar
Date: 2007-03-05 16:42:40 -0500 (Mon, 05 Mar 2007)
New Revision: 4999

Modified:
   plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
Log:
I was able to reproduce Jon's issue in one situation, this fix should help.

Modified: plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/commentscommon.class.php	2007-03-05 21:41:47 UTC (rev 4998)
+++ plog/branches/lifetype-1.2/class/dao/commentscommon.class.php	2007-03-05 21:42:40 UTC (rev 4999)
@@ -1,9 +1,10 @@
 <?php
 
 	lt_include( PLOG_CLASS_PATH."class/dao/model.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );	
 	lt_include( PLOG_CLASS_PATH."class/dao/articlecommentstatus.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/dao/daocacheconstants.properties.php" ); 
+	lt_include( PLOG_CLASS_PATH."class/dao/usercomment.class.php" );
+	lt_include( PLOG_CLASS_PATH."class/dao/trackback.class.php" );	
 
 	/** 
 	 * different orders that comments can have
@@ -81,8 +82,10 @@
 					$blog->setTotalTrackbacks($this->getNumItems( $this->getPrefix().'articles_comments', 
 																  'blog_id = '.$blog->getId().' AND type = '.$comment->getType()));					
 				}
+				lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );					
 				$articles = new Articles();
 				$articles->updateArticle( $article );
+				lt_include( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
 				$blogs = new Blogs();
 				$blogs->updateBlog( $blog );
 			}
@@ -419,6 +422,7 @@
 			}
 				
 			$comments = Array();
+			lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );
 			$articles = new Articles();
 			while( $row = $result->FetchRow()) {
 				$comments[] = $this->mapRow( $row );



More information about the pLog-svn mailing list