[pLog-svn] r2815 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Wed Jan 18 04:11:55 GMT 2006
Author: mark
Date: 2006-01-18 04:11:53 +0000 (Wed, 18 Jan 2006)
New Revision: 2815
Modified:
plog/trunk/class/dao/articlecategories.class.php
Log:
Now the deleteCategory works better.
Modified: plog/trunk/class/dao/articlecategories.class.php
===================================================================
--- plog/trunk/class/dao/articlecategories.class.php 2006-01-18 03:48:40 UTC (rev 2814)
+++ plog/trunk/class/dao/articlecategories.class.php 2006-01-18 04:11:53 UTC (rev 2815)
@@ -214,8 +214,11 @@
function deleteCategory( $categoryId, $blogId )
{
$category = $this->getCategory( $categoryId, $blogId );
- if( $category )
- return( $this->delete( "id", $categoryId ));
+ if( $category ) {
+ if ( $this->delete( "id", $categoryId ) )
+ $this->_cache->removeData( $blogId, CACHE_ARTICLE_CATEGORIES_BLOG );
+ return( true );
+ }
else
return( false );
}
More information about the pLog-svn
mailing list