Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Open Melody Software Group committed Nov 17, 2009
1 parent 8e90bba commit 17b904b
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions lib/MT/CMS/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,8 @@ sub cfg_plugins {
my $app = shift;
my $q = $app->param;
my %param;

my $cfg = $app->config;
$param{can_config} = $app->user->can_manage_plugins;
$param{use_plugins} = $cfg->UsePlugins;
$param{nav_config} = 1;
$param{nav_settings} = 1;
$param{nav_plugins} = 1;
$param{switched} = 1 if $app->param('switched');
$param{mod_perl} = 1 if $ENV{MOD_PERL};
$param{screen_id} = "list-plugins";
$param{screen_class} = "plugin-settings";
build_plugin_table( $app, param => \%param, scope => 'system' );
$app->load_tmpl( 'list_plugin.tmpl', \%param );
}

sub cfg_plugins {
my $app = shift;
my $q = $app->query;
my %param;
$param{screen_class} = 'settings-screen';

my $cfg = $app->config;
$param{can_config} = $app->user->can_manage_plugins;
$param{use_plugins} = $cfg->UsePlugins;
Expand All @@ -58,7 +39,7 @@ sub cfg_plugins {
$param{screen_id} = "list-plugins";
$param{screen_class} = "plugin-settings";
build_plugin_table( $app, param => \%param, scope => $q->param('blog_id') ? 'blog:'.$q->param('blog_id') : 'system' );

$app->load_tmpl( 'cfg_plugin.tmpl', \%param );
}

Expand Down

0 comments on commit 17b904b

Please sign in to comment.