Bug 11058: fix compilation warning in C4::Record

A routine declares two lexical variables named $stylesheet.
This patch renames the second to keep code clearer and
avoid propagating compile time warnings

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, works as advertised!

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 6bad4db6a7)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Colin Campbell 2013-10-16 10:09:12 +01:00 committed by Tomas Cohen Arazi
parent e8a7f3c27b
commit 4db6cf60ea
1 changed files with 3 additions and 3 deletions

View File

@ -310,9 +310,9 @@ sub _transformWithStylesheet {
my $xslt = XML::LibXSLT->new();
my $source = $parser->parse_string($xmlrecord);
my $style_doc = $parser->parse_file($xslfile);
my $stylesheet = $xslt->parse_stylesheet($style_doc);
my $results = $stylesheet->transform($source);
my $newxmlrecord = $stylesheet->output_string($results);
my $style_sheet = $xslt->parse_stylesheet($style_doc);
my $results = $style_sheet->transform($source);
my $newxmlrecord = $style_sheet->output_string($results);
return ($newxmlrecord);
}