Changeset 2958
- Timestamp:
- 08/21/08 04:23:24 (3 months ago)
- Files:
-
- branches/mt4.21/lib/MT/Template.pm (modified) (1 diff)
- branches/mt4.21/lib/MT/TemplateMap.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mt4.21/lib/MT/Template.pm
r2957 r2958 662 662 sub pre_remove_children { 663 663 my $tmpl = shift; 664 # global templates doesn't have child records 665 if ( $tmpl->blog_id ) { 666 $tmpl->remove_children({ key => 'template_id' }); 667 } 664 $tmpl->remove_children({ key => 'template_id' }); 668 665 } 669 666 branches/mt4.21/lib/MT/TemplateMap.pm
r2396 r2958 102 102 if ( $_[0] && $_[0]->{template_id} ) { 103 103 my $tmpl = MT::Template->load( $_[0]->{template_id} ); 104 $blog_id = $tmpl->blog_id if $tmpl; 104 if ( $tmpl ) { 105 return $result unless $tmpl->blog_id; # global template does not have maps 106 $blog_id = $tmpl->blog_id; 107 } 105 108 } 106 109
