You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by da...@apache.org on 2002/02/21 16:56:38 UTC
cvs commit: xml-axkit/lib/Apache/AxKit Language.pm
darobin 02/02/21 07:56:37
Modified: lib/Apache/AxKit Language.pm
Log:
fix two bugs in the parametre handling (Joerg and Robin)
Revision Changes Path
1.3 +2 -3 xml-axkit/lib/Apache/AxKit/Language.pm
Index: Language.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Language.pm 30 Jan 2002 18:17:21 -0000 1.2
+++ Language.pm 21 Feb 2002 15:56:37 -0000 1.3
@@ -1,4 +1,4 @@
-# $Id: Language.pm,v 1.2 2002/01/30 18:17:21 darobin Exp $
+# $Id: Language.pm,v 1.3 2002/02/21 15:56:37 darobin Exp $
package Apache::AxKit::Language;
@@ -24,11 +24,10 @@
my $class = shift;
my $r = shift;
- my $cgi = Apache::Request->instance($r);
my @xslt_params;
if (!$r->notes('disable_xslt_params')) {
my $cgi = Apache::Request->instance($r);
- @xslt_params = map { $_ => $cgi->param($_) } $cgi->param;
+ @xslt_params = map { $_ => ($cgi->param($_))[0] } $cgi->param;
if (ref($r->pnotes('extra_xslt_params')) eq 'ARRAY') {
push @xslt_params, @{$r->pnotes('extra_xslt_params')};
}