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

Jon Daley plogworld at jon.limedaley.com
Wed Mar 7 07:17:27 EST 2007


 	This fix seems like it would always have the wrong order?  I don't 
think that was the behavior I saw, but maybe I didn't look carefully 
enough.
 	I updated the code, and I am currently seeing them in the right 
order.  I'll be more convinced after some time goes by.

On Wed, 7 Mar 2007, oscar at devel.lifetype.net wrote:

> 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 );
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

For many people, one of the most frustrating aspects of life is not
being to understand other people's behavior.  We see them as "guilty"
instead of "innocent."
-- Unknown


More information about the pLog-svn mailing list