[pLog-svn] r5015 - plog/branches/lifetype-1.2/class/action

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Mar 7 07:10:11 EST 2007


Author: oscar
Date: 2007-03-07 07:10:10 -0500 (Wed, 07 Mar 2007)
New Revision: 5015

Modified:
   plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
Log:
fixed issue with the comment sorting... a very silly one, btw :)


Modified: plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2007-03-06 21:56:29 UTC (rev 5014)
+++ plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2007-03-07 12:10:10 UTC (rev 5015)
@@ -248,8 +248,9 @@
 			if( $commentsPerPage > $hardLimit ) $commentsPerPage = $hardLimit;						
 
 			$comments = new ArticleComments();
+            $order = $blogSettings->getValue( "comments_order", COMMENT_ORDER_NEWEST_FIRST );
 			$postComments = $comments->getPostComments( $article->getId(), 
-			                                            $order = COMMENT_ORDER_NEWEST_FIRST, 
+			                                            $order,
 			                                            COMMENT_STATUS_NONSPAM, 
 			                                            $this->_page, 
 			                                            $commentsPerPage );



More information about the pLog-svn mailing list