[pLog-svn] r1851 - plog/trunk/class/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sun Apr 17 17:31:35 GMT 2005
Author: oscar
Date: 2005-04-17 17:31:34 +0000 (Sun, 17 Apr 2005)
New Revision: 1851
Modified:
plog/trunk/class/dao/article.class.php
Log:
removed some unnecessary code
Modified: plog/trunk/class/dao/article.class.php
===================================================================
--- plog/trunk/class/dao/article.class.php 2005-04-17 17:30:47 UTC (rev 1850)
+++ plog/trunk/class/dao/article.class.php 2005-04-17 17:31:34 UTC (rev 1851)
@@ -6,7 +6,6 @@
include_once( PLOG_CLASS_PATH.'class/dao/userinfo.class.php' );
include_once( PLOG_CLASS_PATH.'class/dao/bloginfo.class.php' );
include_once( PLOG_CLASS_PATH.'class/dao/articlecategory.class.php' );
- include_once( PLOG_CLASS_PATH.'class/dao/articlecomments.class.php' );
include_once( PLOG_CLASS_PATH.'class/dao/articlestatus.class.php' );
include_once( PLOG_CLASS_PATH.'class/data/textfilter.class.php' );
include_once( PLOG_CLASS_PATH.'class/dao/trackbacks.class.php' );
@@ -257,7 +256,8 @@
function getComments( $onlyActive = true )
{
// load the comments if they haven't been loaded yet
- if( $this->_comments == null ) {
+ if( $this->_comments == null ) {
+ include_once( PLOG_CLASS_PATH.'class/dao/articlecomments.class.php' );
$userComments = new ArticleComments();
$blogSettings = $this->_blogInfo->getSettings();
$this->setComments( $userComments->getPostComments( $this->getId(), $blogSettings->getValue( 'comments_order' ), COMMENT_STATUS_ALL ));
More information about the pLog-svn
mailing list