Skip to content

Commit

Permalink
Item13560: Adjust warning for web vs. CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Sep 7, 2015
1 parent 503471e commit b2b9316
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion core/lib/Foswiki/Configure/Checkers/ExtensionsRepositories.pm
Expand Up @@ -61,12 +61,28 @@ sub check_current_value {
);
}

my $specChanged;
foreach my $ext ( Foswiki::Configure::Load::specChanged() ) {
my $specfile = ( $ext eq 'the core' ) ? 'Foswiki.spec' : 'Config.spec';
$specChanged = 1;
$reporter->WARN(
"The $specfile for $ext is more recent than the latest configuration. You should run 'import extension settings' and then save the configuration."
"The $specfile for $ext is more recent than the latest configuration."
);
}
if ($specChanged) {
if ( defined $Foswiki::cfg{Engine}
&& $Foswiki::cfg{Engine} !~ /(CLI|Legacy)$/ )
{
$reporter->WARN(
"You should run 'import extension settings' and then save the configuration."
);
4;
}
else {
$reporter->WARN(
"You should run 'tools/configure -wizard Plugins -save'. ");
}
}
}

1;
Expand Down

0 comments on commit b2b9316

Please sign in to comment.