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

cvs@template-toolkit.org cvs@template-toolkit.org


cvs         06/01/30 17:22:51

  Modified:    lib/Template Provider.pm
  Log:
  * applied patch to fix a misleading error message
    http://rt.cpan.org/Ticket/Display.html?id=5327
  
  Revision  Changes    Path
  2.85      +4 -4      Template2/lib/Template/Provider.pm
  
  Index: Provider.pm
  ===================================================================
  RCS file: /template-toolkit/Template2/lib/Template/Provider.pm,v
  retrieving revision 2.84
  retrieving revision 2.85
  diff -u -r2.84 -r2.85
  --- Provider.pm	2006/01/30 15:30:30	2.84
  +++ Provider.pm	2006/01/30 17:22:51	2.85
  @@ -27,7 +27,7 @@
   #
   #----------------------------------------------------------------------------
   #
  -# $Id: Provider.pm,v 2.84 2006/01/30 15:30:30 abw Exp $
  +# $Id: Provider.pm,v 2.85 2006/01/30 17:22:51 abw Exp $
   #
   #============================================================================
   
  @@ -49,7 +49,7 @@
   use constant NEXT   => 4;
   use constant STAT   => 5;
   
  -our $VERSION = sprintf("%d.%02d", q$Revision: 2.84 $ =~ /(\d+)\.(\d+)/);
  +our $VERSION = sprintf("%d.%02d", q$Revision: 2.85 $ =~ /(\d+)\.(\d+)/);
   our $DEBUG   = 0 unless defined $DEBUG;
   our $ERROR   = '';
   
  @@ -678,8 +678,8 @@
       }
       
       $data->{ path } = $data->{ name }
  -        if $data and ! defined $data->{ path };
  -    
  +        if $data and ref $data and ! defined $data->{ path };
  +
       return ($data, $error);
   }