[Koha-patches] [PATCH] Bug 11058: make variable name unique within its scope
Colin Campbell
colin.campbell at ptfs-europe.com
Wed Oct 16 11:17:17 CEST 2013
routine declares two lexical variables named $stylesheet
rename the second to keep code clearer and
avoid propagating compile time warnings
---
C4/Record.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/C4/Record.pm b/C4/Record.pm
index 7277f2c..9d72d5a 100644
--- a/C4/Record.pm
+++ b/C4/Record.pm
@@ -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);
}
--
1.8.3.1
More information about the Koha-patches
mailing list