Merge branch 'ent-6967-mensaje-error-constante-YAML-Tiny' into 'develop'
Changed message disposition Closes pandora_enterprise#6967 See merge request artica/pandorafms!3852
This commit is contained in:
commit
078901924c
|
@ -592,7 +592,6 @@ BEGIN {
|
|||
my ($self) = @_;
|
||||
|
||||
if ($YAML == 0) {
|
||||
$self->set_last_error('Cannot use commands without YAML dependency, please install it.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4030,6 +4029,14 @@ if ($Conf{'proxy_mode'}) {
|
|||
}
|
||||
}
|
||||
|
||||
# Advice if YAML::Tiny is allowed in this system
|
||||
eval {
|
||||
eval 'require YAML::Tiny;1' or die('YAML::Tiny lib not found, commands feature won\'t be available');
|
||||
};
|
||||
if ($@) {
|
||||
log_message ('error', 'Cannot use commands without YAML dependency, please install it.');
|
||||
}
|
||||
|
||||
# Add the plugins directory to the PATH
|
||||
$ENV{'PATH'} .= ":$ConfDir/plugins";
|
||||
|
||||
|
|
Loading…
Reference in New Issue