[interchange-cvs] interchange - jon modified lib/Vend/Util.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Tue Dec 16 09:07:56 EST 2003
User: jon
Date: 2003-12-16 14:07:56 GMT
Modified: lib/Vend Util.pm
Log:
Move $opt empty hashref default up before first use of %$opt.
Revision Changes Path
2.66 +4 -3 interchange/lib/Vend/Util.pm
rev 2.66, prev_rev 2.65
Index: Util.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Util.pm,v
retrieving revision 2.65
retrieving revision 2.66
diff -u -u -r2.65 -r2.66
--- Util.pm 15 Dec 2003 22:25:07 -0000 2.65
+++ Util.pm 16 Dec 2003 14:07:56 -0000 2.66
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
-# $Id: Util.pm,v 2.65 2003/12/15 22:25:07 mheins Exp $
+# $Id: Util.pm,v 2.66 2003/12/16 14:07:56 jon Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -87,7 +87,7 @@
use Vend::File;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.65 $, 10);
+$VERSION = substr(q$Revision: 2.66 $, 10);
my $Eval_routine;
my $Eval_routine_file;
@@ -1162,6 +1162,8 @@
sub vendUrl {
my($path, $arguments, $r, $opt) = @_;
+ $opt ||= {};
+
if($opt->{auto_format}) {
return $path if $path =~ m{^/};
$path =~ s:#([^/.])+$::
@@ -1180,7 +1182,6 @@
$r = $Vend::Cfg->{SecureURL};
}
- $opt ||= {};
my %skip = qw/form 1 href 1 reparse 1/;
for(@scratches) {
More information about the interchange-cvs
mailing list