Show
Ignore:
Timestamp:
06/19/08 05:52:32 (18 months ago)
Author:
takayama
Message:

Fixed BugId:80147
* The archive type without a mapping was disabled.

Files:
1 modified

Legend:

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

    r2602 r2606  
    43004300    my ($ctx, $args) = @_; 
    43014301    my $blog = $ctx->stash('blog'); 
    4302     my $at = lc ($args->{type} || $args->{archive_type}); 
     4302    my $at = ($args->{type} || $args->{archive_type}); 
    43034303    return $blog->has_archive_type($at); 
    43044304} 
     
    1170011700    my $archiver = MT->publisher->archiver($at); 
    1170111701    return '' unless $archiver; 
     11702    my $map_class = MT->model('templatemap'); 
     11703    my $map = $map_class->load({ archive_type => $at, blog_id => $blog->id }); 
     11704    return '' unless $map; 
    1170211705 
    1170311706    my $save_stamps; 
    11704  
    1170511707    if ($ctx->{current_archive_type} && $arg_at && ($ctx->{current_archive_type} eq $arg_at)) { 
    1170611708        $save_stamps = 1;