[pLog-svn] r2123 - plog/branches/plog-1.1-ben/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Tue May 31 00:24:41 GMT 2005


Author: ork
Date: 2005-05-31 00:24:40 +0000 (Tue, 31 May 2005)
New Revision: 2123

Modified:
   plog/branches/plog-1.1-ben/class/dao/articlecomments.class.php
Log:
added missing includes


Modified: plog/branches/plog-1.1-ben/class/dao/articlecomments.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/articlecomments.class.php	2005-05-31 00:24:13 UTC (rev 2122)
+++ plog/branches/plog-1.1-ben/class/dao/articlecomments.class.php	2005-05-31 00:24:40 UTC (rev 2123)
@@ -1,6 +1,6 @@
 <?php
 
-	include_once( PLOG_CLASS_PATH."class/dao/model.class.php" );
+	require_once( PLOG_CLASS_PATH."class/dao/model.class.php" );
 
 	define( "COMMENT_ORDER_OLDEST_FIRST", 1 );
 	define( "COMMENT_ORDER_NEWEST_FIRST", 2 );
@@ -137,7 +137,7 @@
 		 */
 		function getPostCommentsByIds( $ids, $order = COMMENT_ORDER_NEWEST_FIRST, $status = COMMENT_STATUS_ALL )
 		{
-	        include_once( PLOG_CLASS_PATH."class/dao/usercomment.class.php" );
+	        require_once( PLOG_CLASS_PATH."class/dao/usercomment.class.php" );
 
 			$query = "SELECT * FROM ".$this->getPrefix()."articles_comments WHERE article_id IN (".$ids.")";
             if( $status != COMMENT_STATUS_ALL )
@@ -269,7 +269,8 @@
          */
         function _fillCommentInformation( $row )
         {
-	        include_once( PLOG_CLASS_PATH."class/dao/usercomment.class.php" );
+	        require_once( PLOG_CLASS_PATH."class/dao/usercomment.class.php" );
+	        require_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
 
         	// ---
             // this stuff is another disgusting hack to make comments
@@ -456,7 +457,7 @@
 		 */
 		function getBlogComments( $blogId, $maxItems = 0, $articleStatus = POST_STATUS_PUBLISHED )
 		{
-	        include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
+	        require_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
 
 			$prefix = $this->getPrefix();
 			$query = "SELECT c.id AS id, c.article_id AS article_id, c.topic AS topic, 




More information about the pLog-svn mailing list