Changeset 1781 for branches/release-33/lib/MT/Template/ContextHandlers.pm
- Timestamp:
- 04/05/08 03:40:25 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-33/lib/MT/Template/ContextHandlers.pm
r1780 r1781 3639 3639 return $ctx->error(MT->translate('sort_by="score" must be used in combination with namespace.')) 3640 3640 if ((exists $args->{sort_by}) && ('score' eq $args->{sort_by}) && (!exists $args->{namespace})); 3641 3641 3642 3642 my $cfg = $ctx->{config}; 3643 3643 my $at = $ctx->{current_archive_type} || $ctx->{archive_type}; … … 3966 3966 $args{'sort'} = 'authored_on'; 3967 3967 if ($args->{sort_by}) { 3968 $args->{sort_by} = 'ping_count' if $args->{sort_by} eq 'trackback_count'; 3968 3969 if ($class->has_column($args->{sort_by})) { 3969 3970 $args{sort} = $args->{sort_by};
