Bug 27673: Replace YAML with YAML::XS
[koha-ffzg.git] / opac / opac-ISBDdetail.pl
index cc4b5b8..f8ff0d2 100755 (executable)
@@ -40,6 +40,7 @@ the items attached to the biblio
 =cut
 
 use Modern::Perl;
+use YAML::XS;
 
 use C4::Auth;
 use C4::Context;
@@ -82,7 +83,7 @@ my $patron = Koha::Patrons->find($loggedinuser);
 my $opachiddenitems_rules;
 eval {
     my $yaml = C4::Context->preference('OpacHiddenItems') . "\n\n";
-    $opachiddenitems_rules = YAML::Load($yaml);
+    $opachiddenitems_rules = YAML::XS::Load($yaml);
 };
 
 unless ( $patron and $patron->category->override_hidden_items ) {