Skip to content

Commit

Permalink
Item13560: need to check {Module} even when the plugin is disabled, o…
Browse files Browse the repository at this point in the history
…r we won't see freshly unzipped plugins
  • Loading branch information
Crawford Currie committed Aug 24, 2015
1 parent 0d13447 commit e597e35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/lib/Foswiki/Configure/Checkers/PLUGIN_MODULE.pm
Expand Up @@ -25,9 +25,6 @@ sub check_current_value {
my $key = $2;
my $mod = $Foswiki::cfg{Plugins}{$plug}{Module};

# Don't check it if it's not enabled
return unless $Foswiki::cfg{Plugins}{$plug}{Enabled};

unless ($mod) {
$reporter->ERROR(
"$plug has no {Plugins}{$plug}{Module}. It has been reset to the default value - this change must be saved."
Expand All @@ -36,6 +33,9 @@ sub check_current_value {
return;
}

# Don't check it if it's not enabled
return unless $Foswiki::cfg{Plugins}{$plug}{Enabled};

my @plugpath = split( '::', $mod );
my $enabled = shift @plugpath;
my $plugpath = join( '/', @plugpath );
Expand Down

0 comments on commit e597e35

Please sign in to comment.