Show
Ignore:
Timestamp:
06/04/08 01:21:49 (18 months ago)
Author:
fumiakiy
Message:

Modernized how sort argument is specified in group_by query. BugId:79977. The legacy way of specifying it is still allowed but discouraged.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/ArchiveType/Daily.pm

    r1741 r2500  
    103103            ], 
    104104            $args->{lastn} ? ( limit => $args->{lastn} ) : (), 
    105             sort => "extract(year from authored_on) $order, 
    106                         extract(month from authored_on) $order, 
    107                         extract(day from authored_on) $order" 
     105            sort => [ 
     106                { column => "extract(year from authored_on)", desc => $order }, 
     107                { column => "extract(month from authored_on)", desc => $order }, 
     108                { column => "extract(day from authored_on)", desc => $order } 
     109            ], 
    108110        } 
    109111    ) or return $ctx->error("Couldn't get daily archive list");