Skip to content

Commit

Permalink
Only instantiate objects whose plugins have been installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Jun 12, 2007
1 parent 4bf0275 commit 5e3304d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/Stats/adminmail.pl
Expand Up @@ -843,12 +843,12 @@
}
$statsSave->createStatDaily("relocate_all", $total);
}
my $subscribe = getObject('Slash::Subscribe');
my $firehose = getObject('Slash::FireHose');
my $tags = getObject('Slash::Tags');
if($subscribe){

my $subscribe = getObject('Slash::Subscribe') if $constants->{plugin}{Subscribe};
my $firehose = getObject('Slash::FireHose') if $constants->{plugin}{FireHose};
my $tags = getObject('Slash::Tags') if $constants->{plugin}{Tags};

if ($subscribe) {
my $rswh = $stats->getSubscribersWithRecentHits();
my $sub_cr = $logdb->getSubscriberCrawlers($rswh);
my $sub_report;
Expand Down

0 comments on commit 5e3304d

Please sign in to comment.