Changeset 2343
- Timestamp:
- 05/15/08 19:33:29 (21 months ago)
- Files:
-
- 1 modified
-
branches/release-38/lib/MT/WeblogPublisher.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/lib/MT/WeblogPublisher.pm
r2299 r2343 48 48 while (my ($type, $typedata) = each %$types) { 49 49 if ('HASH' eq ref $typedata) { 50 # $typedata = { %$typedata }; # don't edit registry51 # $typedata->{$_} = $mt->handler_to_coderef($typedata->{$_})52 # for qw( archive_label archive_file archive_title date_range53 # archive_group_iter archive_group_entries54 # archive_entries_count );55 # $typedata->{default_archive_templates} = [56 # map { { %$_ } }57 # @{ $typedata->{default_archive_templates} || [] }58 # ];59 # All of the above is useless, since we're replacing $typedate60 # by this object.61 50 $typedata = MT::ArchiveType->new( %$typedata ); 62 51 } … … 914 903 $url .= $map->{__saved_output_file}; 915 904 916 my $cached_tmpl = MT->instance->request('__cached_templates')917 || MT->instance->request( '__cached_templates', {} );918 905 my $tmpl_id = $map->template_id; 919 906 … … 930 917 } 931 918 932 my $tmpl = $cached_tmpl->{$tmpl_id}; 933 unless ($tmpl) { 934 $tmpl = MT::Template->load($tmpl_id); 935 if ($cached_tmpl) { 936 $cached_tmpl->{$tmpl_id} = $tmpl; 937 } 938 } 939 919 my $tmpl = MT::Template->load($tmpl_id); 940 920 $tmpl->context($ctx); 941 921
