[pLog-svn] r6842 - plog/branches/lifetype-1.2/class/dao
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Thu Feb 26 14:06:39 EST 2009
Author: pwestbro
Date: 2009-02-26 14:06:38 -0500 (Thu, 26 Feb 2009)
New Revision: 6842
Modified:
plog/branches/lifetype-1.2/class/dao/articles.class.php
Log:
Fixed a bug where deleting a comment would result in a blank page
Modified: plog/branches/lifetype-1.2/class/dao/articles.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/articles.class.php 2009-02-25 20:32:39 UTC (rev 6841)
+++ plog/branches/lifetype-1.2/class/dao/articles.class.php 2009-02-26 19:06:38 UTC (rev 6842)
@@ -804,8 +804,10 @@
}
$newArticle->setPostSlug($slug);
}
-
- // check whether the categories are valid for this blog
+
+ lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
+
+ // check whether the categories are valid for this blog
$newCategoryIds = $newArticle->getCategoryIds();
$blogCategories = new ArticleCategories();
foreach($newCategoryIds as $catId){
@@ -975,6 +977,8 @@
// check whether the categories are valid for this blog
if($article->getStatus() != POST_STATUS_DELETED){
+ lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
+
$newCategoryIds = $article->getCategoryIds();
$blogCategories = new ArticleCategories();
foreach($newCategoryIds as $catId){
@@ -1217,7 +1221,7 @@
*/
function mapRow( $query_result )
{
- lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
lt_include( PLOG_CLASS_PATH.'class/data/timestamp.class.php' );
lt_include( PLOG_CLASS_PATH.'class/dao/users.class.php' );
lt_include( PLOG_CLASS_PATH.'class/dao/blogs.class.php' );
More information about the pLog-svn
mailing list