Changeset 2606 for branches/release-40/lib/MT/Blog.pm
- Timestamp:
- 06/19/08 05:52:32 (18 months ago)
- Files:
-
- 1 modified
-
branches/release-40/lib/MT/Blog.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/lib/MT/Blog.pm
r2559 r2606 486 486 my ($type) = @_; 487 487 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; 489 495 } 490 496
