Changeset 2002
- Timestamp:
- 04/21/08 09:33:04 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-35/lib/MT/Template/ContextHandlers.pm
r1998 r2002 5114 5114 my $col = lc($args->{sort_by} || 'created_on'); 5115 5115 @$comments = $so eq 'ascend' ? 5116 sort { $a->$col() cmp $b->$col() } @$comments : 5117 sort { $b->$col() cmp $a->$col() } @$comments; 5118 $no_resort = 1; 5116 sort { $a->created_on cmp $b->created_on } @$comments : 5117 sort { $b->created_on cmp $a->created_on } @$comments; 5118 $no_resort = 1 5119 unless $args->{sort_order} || $args->{sort_by}; 5119 5120 if (@filters) { 5120 5121 my $offset = $args->{offset} || 0; … … 5139 5140 @comments = @$comments; 5140 5141 } 5141 $no_resort = 15142 unless $args->{sort_order} || $args->{sort_by};5143 5142 } 5144 5143 if ($n) { branches/release-35/tmpl/cms/widget/blog_stats_comment.tmpl
r1309 r2002 31 31 <h4 class="tab-panel-header"><__trans phrase="Most Recent Comments"></h4> 32 32 33 <MTComments >33 <MTComments sort_order="descend"> 34 34 <div id="comment-<$MTCommentID$>" class="comment comment-<mt:if name="__odd__">odd<mt:else>even</mt:if> comment-<MTCommentIfModerated>status-publish<MTElse>status-pending</MTCommentIfModerated>"> 35 35 <div class="comment-inner">
