[interchange-cvs] interchange - kwalsh modified lib/Vend/Util.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Tue Sep 11 12:19:59 EDT 2007
User: kwalsh
Date: 2007-09-11 16:19:59 GMT
Modified: lib/Vend Util.pm
Log:
* Aboid problems arrising from an undefined TemplateDir.
Revision Changes Path
2.110 +4 -4 interchange/lib/Vend/Util.pm
rev 2.110, prev_rev 2.109
Index: Util.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Util.pm,v
retrieving revision 2.109
retrieving revision 2.110
diff -u -r2.109 -r2.110
--- Util.pm 10 Sep 2007 17:35:01 -0000 2.109
+++ Util.pm 11 Sep 2007 16:19:59 -0000 2.110
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
-# $Id: Util.pm,v 2.109 2007/09/10 17:35:01 kwalsh Exp $
+# $Id: Util.pm,v 2.110 2007/09/11 16:19:59 kwalsh Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -90,7 +90,7 @@
use Vend::File;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.109 $, 10);
+$VERSION = substr(q$Revision: 2.110 $, 10);
my $Eval_routine;
my $Eval_routine_file;
@@ -1142,8 +1142,8 @@
my @dirs = ($Vend::Cfg->{PreviewDir},
$Vend::Cfg->{PageDir},
- @{$Vend::Cfg->{TemplateDir}},
- @{$Global::TemplateDir});
+ @{$C->{TemplateDir} || []},
+ @{$Global::TemplateDir || []};
foreach $try (@dirs) {
next unless $try;
More information about the interchange-cvs
mailing list