Show
Ignore:
Timestamp:
04/05/08 03:40:25 (20 months ago)
Author:
auno
Message:

Forgot to check in this file.
Added sorting comment_count and trackback_count for MTEntries. BugzID:67729

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/Template/ContextHandlers.pm

    r1780 r1781  
    36393639    return $ctx->error(MT->translate('sort_by="score" must be used in combination with namespace.')) 
    36403640        if ((exists $args->{sort_by}) && ('score' eq $args->{sort_by}) && (!exists $args->{namespace})); 
    3641      
     3641 
    36423642    my $cfg = $ctx->{config}; 
    36433643    my $at = $ctx->{current_archive_type} || $ctx->{archive_type}; 
     
    39663966        $args{'sort'} = 'authored_on'; 
    39673967        if ($args->{sort_by}) { 
     3968            $args->{sort_by} = 'ping_count' if $args->{sort_by} eq 'trackback_count'; 
    39683969            if ($class->has_column($args->{sort_by})) { 
    39693970                $args{sort} = $args->{sort_by};