Changeset 1863
- Timestamp:
- 04/11/08 15:34:34 (22 months ago)
- Files:
-
- 1 modified
-
branches/release-34/lib/MT/CMS/Template.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-34/lib/MT/CMS/Template.pm
r1852 r1863 1709 1709 my $tmpl_list = MT::DefaultTemplates->templates($set) or return; 1710 1710 1711 my $trnames = {};1712 1711 my $tmpl_types = {}; 1713 1712 my $tmpl_ids = {}; … … 1717 1716 $tmpl_ids->{ $tmpl->{identifier} } = $tmpl 1718 1717 if $tmpl->{identifier}; 1719 $trnames->{ $app->translate( $tmpl->{name} ) } = $tmpl->{name};1720 1718 if ( $tmpl->{type} !~ m/^(archive|individual|page|category|index|custom|widget)$/ ) 1721 1719 { … … 1743 1741 $ts[4] + 1, @ts[ 3, 2, 1, 0 ]; 1744 1742 1745 my $orig_name = $trnames->{ $tmpl->name } || $tmpl->name;1746 1743 my $val = ( $tmpl->identifier ? $tmpl_ids->{ $tmpl->identifier() } : undef ) 1747 1744 || $tmpl_types->{ $tmpl->type() } 1748 || $tmpls->{ $tmpl->type() }{ $orig_name};1745 || $tmpls->{ $tmpl->type() }{ $tmpl->name }; 1749 1746 if ( !$val ) { 1750 1747 push @msg,
