[Templates-cvs] cvs commit: Template2/lib/Template Provider.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Mon, 01 Dec 2003 16:22:26 +0000


cvs         03/12/01 16:22:22

  Modified:    lib/Template Provider.pm
  Log:
  removed // from path
  
  Revision  Changes    Path
  2.74      +3 -2      Template2/lib/Template/Provider.pm
  
  Index: Provider.pm
  ===================================================================
  RCS file: /template-toolkit/Template2/lib/Template/Provider.pm,v
  retrieving revision 2.73
  retrieving revision 2.74
  diff -u -r2.73 -r2.74
  --- Provider.pm	2003/12/01 16:05:45	2.73
  +++ Provider.pm	2003/12/01 16:22:20	2.74
  @@ -27,7 +27,7 @@
   #
   #----------------------------------------------------------------------------
   #
  -# $Id: Provider.pm,v 2.73 2003/12/01 16:05:45 abw Exp $
  +# $Id: Provider.pm,v 2.74 2003/12/01 16:22:20 abw Exp $
   #
   #============================================================================
   
  @@ -44,7 +44,7 @@
   use File::Basename;
   use File::Spec;
   
  -$VERSION  = sprintf("%d.%02d", q$Revision: 2.73 $ =~ /(\d+)\.(\d+)/);
  +$VERSION  = sprintf("%d.%02d", q$Revision: 2.74 $ =~ /(\d+)\.(\d+)/);
   
   # name of document class
   $DOCUMENT = 'Template::Document' unless defined $DOCUMENT;
  @@ -497,6 +497,7 @@
   	# search the INCLUDE_PATH for the file, in cache or on disk
   	foreach $dir (@$paths) {
   	    $path = "$dir/$name";
  +            $path =~ s[//][/]g;
   
   	    $self->debug("searching path: $path\n") if $self->{ DEBUG };