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/Blog.pm

    r2559 r2606  
    486486    my ($type) = @_; 
    487487    my %at = map { lc $_ => 1 } split(/,/, $blog->archive_type); 
    488     return exists $at{lc $type} ? 1 : 0; 
     488    my $has = exists $at{lc $type} ? 1 : 0; 
     489    if ($has) { 
     490        my $map_class = MT->model('templatemap'); 
     491        my $map = $map_class->load({ archive_type => $type, blog_id => $blog->id }); 
     492        $has = defined $map ? 1 : 0; 
     493    } 
     494    return $has; 
    489495} 
    490496