Bug 7941 : Fix version numbers in modules
[srvgit] / C4 / XSLT.pm
index cbdf35b..cbe1ff0 100644 (file)
@@ -39,7 +39,7 @@ use vars qw($VERSION @ISA @EXPORT);
 
 BEGIN {
     require Exporter;
-    $VERSION = 0.03;
+    $VERSION = 3.07.00.049;
     @ISA = qw(Exporter);
     @EXPORT = qw(
         &XSLTParse4Display
@@ -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