[pLog-svn] r3126 - plog/trunk/class/dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Mar 25 16:58:38 GMT 2006


Author: jondaley
Date: 2006-03-25 16:58:38 +0000 (Sat, 25 Mar 2006)
New Revision: 3126

Modified:
   plog/trunk/class/dao/articles.class.php
Log:
deleting trackbacks and comments now works when purging posts.  thanks for the advice Oscar - I think I got myself confused yesterday

Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2006-03-25 16:57:53 UTC (rev 3125)
+++ plog/trunk/class/dao/articles.class.php	2006-03-25 16:58:38 UTC (rev 3126)
@@ -1043,11 +1043,12 @@
                 // -- comments --
                 $articleComments = new ArticleComments();
                 foreach( $article->getComments() as $comment )
-                	$comments->deletePostComment( $artId, $comment->getId());
+                	$articleComments->deleteComment( $comment->getId());
                 	
                 // -- trackbacks --
+                $trackbacks = new Trackbacks();
                 foreach( $article->getTrackbacks() as $trackback )
-                	$articles->deleteTrackback( $artId, $trackback->getId());
+                	$trackbacks->deleteTrackback( $trackback->getId());
 
                 // -- post-to-categories mappings --
                 $this->deletePostCategoriesLink( $article );



More information about the pLog-svn mailing list