[pLog-svn] r1698 - plog/branches/plog-1.0.1/class/action

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Apr 4 17:09:18 GMT 2005


Author: oscar
Date: 2005-04-04 17:09:17 +0000 (Mon, 04 Apr 2005)
New Revision: 1698

Modified:
   plog/branches/plog-1.0.1/class/action/rssaction.class.php
Log:
this should fix issue 397 (http://bugs.plogworld.net/view.php?id=397)

Modified: plog/branches/plog-1.0.1/class/action/rssaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/rssaction.class.php	2005-04-04 16:36:58 UTC (rev 1697)
+++ plog/branches/plog-1.0.1/class/action/rssaction.class.php	2005-04-04 17:09:17 UTC (rev 1698)
@@ -64,7 +64,8 @@
             // create an instance of a locale object
             $locale = Locales::getLocale( $localeCode );
 
-            // fetch the posts
+            // fetch the posts, though we are going to fetch the same amount in both branches
+			$amount = $blogSettings->getValue( "recent_posts_max", 15 );            
 			$t = new Timestamp();
 			if( $blogSettings->getValue( 'show_future_posts_in_calendar' )) {
 				$blogArticles = $articles->getBlogArticles( $this->_blogInfo->getId(), -1, $amount, 
@@ -72,7 +73,6 @@
 			}
 			else {
 				$today = $t->getTimestamp();
-				$amount = $blogSettings->getValue( "recent_posts_max", 15 );			
 				$blogArticles = $articles->getBlogArticles( $this->_blogInfo->getId(), -1, $amount, 
 															$categoryId, POST_STATUS_PUBLISHED, 0, $today );			
 			}




More information about the pLog-svn mailing list