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 0dd98c1 commit 11ccc2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/MetaCommentPlugin.pm
Expand Up @@ -19,7 +19,7 @@ use Foswiki::Func ();
use Foswiki::Plugins ();
use Foswiki::Contrib::JsonRpcContrib ();

our $VERSION = '5.00';
our $VERSION = '5.01';
our $RELEASE = '16 Jan 2017';
our $SHORTDESCRIPTION = 'An easy to use comment system';
our $NO_PREFS_IN_TOPIC = 1;
Expand Down Expand Up @@ -59,7 +59,7 @@ sub initPlugin {
return getCore(shift)->jsonRpcMarkComment(@_);
});

if ($Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
if ($Foswiki::cfg{Plugins}{SolrPlugin} && $Foswiki::cfg{Plugins}{SolrPlugin}{Enabled}) {
require Foswiki::Plugins::SolrPlugin;
Foswiki::Plugins::SolrPlugin::registerIndexTopicHandler(sub {
return getCore()->solrIndexTopicHandler(@_);
Expand Down

0 comments on commit 11ccc2f

Please sign in to comment.