[pLog-svn] r2635 - plog/branches/plog-1.0.2/class/action

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Nov 25 16:06:53 GMT 2005


Author: oscar
Date: 2005-11-25 16:06:52 +0000 (Fri, 25 Nov 2005)
New Revision: 2635

Modified:
   plog/branches/plog-1.0.2/class/action/rssaction.class.php
Log:
added a new object called "rssaction" that is exported to the rss templates whenever we generate an RSS
feed based on a certain category.


Modified: plog/branches/plog-1.0.2/class/action/rssaction.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/action/rssaction.class.php	2005-11-25 15:33:58 UTC (rev 2634)
+++ plog/branches/plog-1.0.2/class/action/rssaction.class.php	2005-11-25 16:06:52 UTC (rev 2635)
@@ -76,6 +76,14 @@
 				$blogArticles = $articles->getBlogArticles( $this->_blogInfo->getId(), -1, $amount, 
 															$categoryId, POST_STATUS_PUBLISHED, 0, $today );			
 			}
+			
+			// load the category
+			if( $categoryId > 0 ) {
+			     include_once( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
+			     $articleCategories = new ArticleCategories();
+			     $category = $articleCategories->getCategory( $categoryId );
+			     $this->_view->setValue( "rsscategory", $category );
+			}   
 														
 			$pm =& PluginManager::getPluginManager();
 			$pm->setBlogInfo( $this->_blogInfo );




More information about the pLog-svn mailing list