From: Paul Poulain Date: Thu, 29 Mar 2012 15:23:50 +0000 (+0200) Subject: bug 7821 follow-up: escaping {} in regexp X-Git-Tag: v3.08.00~149 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=f9207da8f2693563b8059ba2d5af3e3f3e19ea22;hp=f91bd36399b1ab46649482f80e0ff1b438a8d9f6;p=koha_gimpoz bug 7821 follow-up: escaping {} in regexp --- diff --git a/C4/XSLT.pm b/C4/XSLT.pm index cbdf35b49d..a22f2e545a 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -171,9 +171,9 @@ sub XSLTParse4Display { } } - if ( $xslfilename =~ m/{langcode}/ ) { + if ( $xslfilename =~ m/\{langcode\}/ ) { my $lang = C4::Templates::_current_language; - $xslfilename =~ s/{langcode}/$lang/; + $xslfilename =~ s/\{langcode\}/$lang/; } # grab the XML, run it through our stylesheet, push it out to the browser