Skip to content

Commit

Permalink
Item14300: fix testing for SolrPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 23, 2017
1 parent 2509c8a commit 1052be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/ClassificationPlugin.pm
Expand Up @@ -30,7 +30,7 @@ BEGIN {
}
}

our $VERSION = '6.00';
our $VERSION = '6.01';
our $RELEASE = '23 Jan 2017';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'A topic classification plugin and application';
Expand Down Expand Up @@ -154,7 +154,7 @@ sub initPlugin {

Foswiki::Func::addToZone('head', 'CLASSIFICATIONPLUGIN::CSS', $css, 'JQUERYPLUGIN::FOSWIKI');

if ($Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
if ($Foswiki::cfg{Plugins}{SolrPlugin} && $Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
require Foswiki::Plugins::SolrPlugin;
Foswiki::Plugins::SolrPlugin::registerIndexTopicHandler(\&indexTopicHandler);
Foswiki::Plugins::SolrPlugin::registerIndexAttachmentHandler(\&indexAttachmentHandler);
Expand Down

0 comments on commit 1052be2

Please sign in to comment.