use Config;
use Search::Elasticsearch;
use Try::Tiny;
-use YAML qw/LoadFile/;
+use YAML::XS;
use C4::Output;
use C4::Auth;
foreach my $syspref (@yaml_prefs) {
my $yaml = C4::Context->preference( $syspref );
if ( $yaml ) {
- eval { YAML::Load( "$yaml\n\n" ); };
+ eval { YAML::XS::Load( "$yaml\n\n" ); };
if ($@) {
push @bad_yaml_prefs, $syspref;
}
## Release teams
my $teams =
-e "$docdir" . "/teams.yaml"
- ? LoadFile( "$docdir" . "/teams.yaml" )
+ ? YAML::XS::LoadFile( "$docdir" . "/teams.yaml" )
: {};
my $dev_team = (sort {$b <=> $a} (keys %{$teams->{team}}))[0];
my $short_version = substr($versions{'kohaVersion'},0,5);
## Contributors
my $contributors =
-e "$docdir" . "/contributors.yaml"
- ? LoadFile( "$docdir" . "/contributors.yaml" )
+ ? YAML::XS::LoadFile( "$docdir" . "/contributors.yaml" )
: {};
for my $version ( sort { $a <=> $b } keys %{$teams->{team}} ) {
for my $role ( keys %{ $teams->{team}->{$version} } ) {