Skip to content

Commit

Permalink
Post-Merge fixes: MT::CMS::Plugin::build_plugin_table dies on call …
Browse files Browse the repository at this point in the history
…to `$plugin->icon` for any 'pack' addons (i.e. those with `.pack` extensions) since the `MT::Component` package doesn't have an icon function. Whether or not packs should be configurable and listed here is a discussion for another time
  • Loading branch information
jayallen committed Jul 16, 2010
1 parent 245c51a commit 95a3107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MT/CMS/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ sub build_plugin_table {

if ( my $plugin = $profile->{object} ) {
my $plugin_icon;
if ( $plugin->icon ) {
if ( $plugin->can('icon') && $plugin->icon ) {
$plugin_icon =
$app->static_path . $plugin->envelope . '/' . $plugin->icon;
}
Expand Down

0 comments on commit 95a3107

Please sign in to comment.