Changeset 2667
- Timestamp:
- 07/01/08 04:52:13 (12 months ago)
- Location:
- branches/release-41/lib
- Files:
-
- 2 modified
-
MT.pm.pre (modified) (1 diff)
-
MT/Component.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/lib/MT.pm.pre
r2276 r2667 2113 2113 my $label = $c->label || $pack->{label}; 2114 2114 $label = $label->() if ref($label) eq 'CODE'; 2115 # if the component did not declare a label, 2116 # it isn't wanting to be visible on the app footer. 2117 next if $label eq $c->{plugin_sig}; 2115 2118 push @packs_installed, { 2116 2119 label => $label, -
branches/release-41/lib/MT/Component.pm
r1927 r2667 137 137 } 138 138 } 139 if (my $init = _getset( $c, 'init' )) { 140 if ( $init && !ref($init) ) { 141 $init = MT->handler_to_coderef($init); 142 } 143 return $init->($c); 144 } 145 return 1; 139 146 } 140 147
