[pLog-svn] r3322 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue May 2 19:53:23 GMT 2006
Author: oscar
Date: 2006-05-02 19:53:23 +0000 (Tue, 02 May 2006)
New Revision: 3322
Modified:
plog/trunk/class/dao/articles.class.php
Log:
this should take care of fixing the issue with sorting categories by their last modification date. The field wasn't actually being set at all when operating with categories, so this should sort it out.
Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php 2006-05-02 19:36:21 UTC (rev 3321)
+++ plog/trunk/class/dao/articles.class.php 2006-05-02 19:53:23 UTC (rev 3322)
@@ -665,6 +665,8 @@
$category = $articleCategories->getCategory( $categoryId );
if( $article->getStatus() == POST_STATUS_PUBLISHED ) {
$category->setNumPublishedArticles( $category->getNumPublishedArticles() +1 );
+ include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
+ $category->setLastModification( new Timestamp());
}
$category->setNumArticles( $category->getNumAllArticles() + 1 );
$articleCategories->updateCategory( $category );
More information about the pLog-svn
mailing list