[pLog-svn] r2302 - plog/trunk/class/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Jul 12 21:05:39 GMT 2005
Author: oscar
Date: 2005-07-12 21:05:39 +0000 (Tue, 12 Jul 2005)
New Revision: 2302
Modified:
plog/trunk/class/dao/usercomment.class.php
Log:
removed some comments which are not valid anymore
Modified: plog/trunk/class/dao/usercomment.class.php
===================================================================
--- plog/trunk/class/dao/usercomment.class.php 2005-07-12 21:04:51 UTC (rev 2301)
+++ plog/trunk/class/dao/usercomment.class.php 2005-07-12 21:05:39 UTC (rev 2302)
@@ -119,13 +119,9 @@
$date = $t->getTimestamp();
}
- $this->setDate( $date );
-
- // by default this is not initialized, it will be up to the DAO class to
- // load this or not... so if I were you, I wouldn't really trust that this has been loaded :)
- // also, it is not necessary most of the times!
+ $this->setDate( $date );
$this->_article = null;
-
+
// by default, we've got a user comment instead of a trackback
$this->_type = COMMENT_TYPE_COMMENT;
}
@@ -413,7 +409,12 @@
*/
function getArticle()
{
- return $this->_article;
+ if( $this->_article == null ) {
+ $articles = new Articles();
+ $this->_article = $articles->getArticle( $this->_artid );
+ }
+
+ return( $this->_article );
}
/**
More information about the pLog-svn
mailing list