[pLog-svn] r4583 - plog/branches/lifetype-1.1.5/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Jan 26 10:20:47 EST 2007


Author: oscar
Date: 2007-01-26 15:20:46 +0000 (Fri, 26 Jan 2007)
New Revision: 4583

Modified:
   plog/branches/lifetype-1.1.5/class/dao/articles.class.php
Log:
This should help fix issue 1135 (http://bugs.lifetype.net/view.php?id=1135)

Modified: plog/branches/lifetype-1.1.5/class/dao/articles.class.php
===================================================================
--- plog/branches/lifetype-1.1.5/class/dao/articles.class.php	2007-01-26 15:09:16 UTC (rev 4582)
+++ plog/branches/lifetype-1.1.5/class/dao/articles.class.php	2007-01-26 15:20:46 UTC (rev 4583)
@@ -1187,8 +1187,12 @@
          */
         function deleteBlogPosts( $blogId )
         {
-            $blogArticles = $this->getBlogArticles( $blogId );
-
+			// load all articles from the blog, not just the active ones
+            $blogArticles = $this->getBlogArticles( $blogId,
+	                                                -1,
+	                                                -1,
+	                                                POST_STATUS_ANY );
+	
             foreach( $blogArticles as $article ) {
                 // the deleteArticle method will also take care of removing comments and
                 // trackbacks



More information about the pLog-svn mailing list