Bug 7758 - Koha allowing LOST items to check out without alert
[koha_gimpoz] / C4 / XSLT.pm
index cbdf35b..56ba544 100644 (file)
@@ -171,9 +171,9 @@ sub XSLTParse4Display {
         }
     }
 
-    if ( $xslfilename =~ m/{langcode}/ ) {
-        my $lang = C4::Templates::_current_language;
-        $xslfilename =~ s/{langcode}/$lang/;
+    if ( $xslfilename =~ m/\{langcode\}/ ) {
+        my $lang = C4::Templates::_current_language();
+        $xslfilename =~ s/\{langcode\}/$lang/;
     }
 
     # grab the XML, run it through our stylesheet, push it out to the browser