[Templates-cvs] cvs commit: Template2/lib/Template Base.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Mon, 12 Jan 2004 12:08:06 +0000
cvs 04/01/12 12:08:05
Modified: lib/Template Base.pm
Log:
* changed version() to module_version() - it caused problems in some of
the tests with Template::Document where the 'version' metadata item
could no longer be accessed as template.version because the base class
method got called.
Revision Changes Path
2.67 +5 -4 Template2/lib/Template/Base.pm
Index: Base.pm
===================================================================
RCS file: /template-toolkit/Template2/lib/Template/Base.pm,v
retrieving revision 2.66
retrieving revision 2.67
diff -u -r2.66 -r2.67
--- Base.pm 2004/01/12 11:51:57 2.66
+++ Base.pm 2004/01/12 12:08:05 2.67
@@ -18,7 +18,7 @@
#
#------------------------------------------------------------------------
#
-# $Id: Base.pm,v 2.66 2004/01/12 11:51:57 abw Exp $
+# $Id: Base.pm,v 2.67 2004/01/12 12:08:05 abw Exp $
#
#========================================================================
@@ -30,7 +30,7 @@
use vars qw( $VERSION );
use Template::Constants;
-$VERSION = sprintf("%d.%02d", q$Revision: 2.66 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf("%d.%02d", q$Revision: 2.67 $ =~ /(\d+)\.(\d+)/);
#------------------------------------------------------------------------
@@ -137,13 +137,14 @@
print STDERR "[$pkg] $msg";
}
+
#------------------------------------------------------------------------
-# version()
+# module_version()
#
# Returns the current version number.
#------------------------------------------------------------------------
-sub version {
+sub module_version {
my $self = shift;
my $class = ref $self || $self;
no strict 'refs';