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

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jan 19 14:08:01 GMT 2006


Author: mark
Date: 2006-01-19 14:08:01 +0000 (Thu, 19 Jan 2006)
New Revision: 2818

Modified:
   plog/trunk/class/dao/articles.class.php
Log:
The editPost now works with article that marked as deleted.

Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2006-01-19 13:12:19 UTC (rev 2817)
+++ plog/trunk/class/dao/articles.class.php	2006-01-19 14:08:01 UTC (rev 2818)
@@ -91,7 +91,7 @@
                                  $date = -1, 
                                  $categoryId = -1, 
                                  $userId = -1, 
-                                 $status = POST_STATUS_PUBLISHED )
+                                 $status = POST_STATUS_ALL )
                                  
         {
             $article = $this->getArticle( $artId );
@@ -109,7 +109,7 @@
             		return false;
             	}
             }
-            if( $article->getStatus() != $status )
+            if( $status != POST_STATUS_ALL && $article->getStatus() != $status )
             	return false;
             	
             return $article;



More information about the pLog-svn mailing list