[Templates-cvs] cvs commit: TT3/lib/Template Tagset.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Wed, 01 Dec 2004 11:09:31 +0000
cvs 04/12/01 11:09:31
Modified: lib/Template Tagset.pm
Log:
* added code to clone the config in init()
Revision Changes Path
1.6 +6 -3 TT3/lib/Template/Tagset.pm
Index: Tagset.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Tagset.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Tagset.pm 2004/11/24 16:22:40 1.5
+++ Tagset.pm 2004/12/01 11:09:31 1.6
@@ -16,7 +16,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Tagset.pm,v 1.5 2004/11/24 16:22:40 abw Exp $
+# $Id: Tagset.pm,v 1.6 2004/12/01 11:09:31 abw Exp $
#
#========================================================================
@@ -28,7 +28,7 @@
use Template::Base;
use base qw( Template::Base );
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $TAGS = { } unless defined $TAGS;
our $ERROR = '';
@@ -51,6 +51,9 @@
$self->debug("init() { ", join(', ', %$config), " }\n")
if $DEBUG;
+ # we need to clone the config so we don't mess with the original
+ $config = { %$config };
+
# Fetch 'tags' from config options, deleting it on the way. We
# have to remove any arguments destined for us (tags, order,
# disabled and enabled) from the config hash which we later pass
@@ -467,7 +470,7 @@
=head1 VERSION
-$Revision: 1.5 $
+$Revision: 1.6 $
=head1 COPYRIGHT