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

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Apr 5 20:26:16 GMT 2005


Author: ork
Date: 2005-04-05 20:26:16 +0000 (Tue, 05 Apr 2005)
New Revision: 1757

Modified:
   plog/branches/plog-1.1-ben/class/dao/article.class.php
Log:
includes


Modified: plog/branches/plog-1.1-ben/class/dao/article.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/article.class.php	2005-04-05 19:43:55 UTC (rev 1756)
+++ plog/branches/plog-1.1-ben/class/dao/article.class.php	2005-04-05 20:26:16 UTC (rev 1757)
@@ -3,12 +3,8 @@
 	include_once( PLOG_CLASS_PATH.'class/dao/articles.class.php' );
 	include_once( PLOG_CLASS_PATH.'class/object/object.class.php' );
 	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' );	
     include_once( PLOG_CLASS_PATH.'class/dao/customfields/customfieldsvalues.class.php' );	
 
     define( 'POST_EXTENDED_TEXT_MODIFIER', '[@more@]' );
@@ -79,7 +75,10 @@
             $this->_totalComments = 0;
             $this->_numTrackbacks = 0;
             $this->_numReads = $numReads;
-			if( $slug == "" ) $this->_slug = Textfilter::urlize( $topic );
+			if( $slug == "" ) {
+	            include_once( PLOG_CLASS_PATH.'class/data/textfilter.class.php' );
+                $this->_slug = Textfilter::urlize( $topic );
+            }
 			else $this->setPostSlug( $slug );
 			
 			// by default it'll have current time
@@ -289,6 +288,7 @@
 		function getTrackbacks()
 		{
 			if( $this->_trackbacks == null ) {
+                include_once( PLOG_CLASS_PATH.'class/dao/trackbacks.class.php' );	
 				$trackbacks = new Trackbacks();
 				$this->_trackbacks = $trackbacks->getArticleTrackbacks( $this->getId());
 			}
@@ -774,6 +774,7 @@
 		function getPostSlug()
 		{
 			if( $this->_slug == "" )
+                include_once( PLOG_CLASS_PATH.'class/data/textfilter.class.php' );
 				$slug = Textfilter::urlize( $this->getTopic());
 			else
 				$slug = $this->_slug;
@@ -788,6 +789,7 @@
 		 */
 		function setPostSlug( $slug )
 		{
+            include_once( PLOG_CLASS_PATH.'class/data/textfilter.class.php' );
 			$this->_slug = Textfilter::urlize( $slug );
 		}
 




More information about the pLog-svn mailing list