[interchange-cvs] interchange - kwalsh modified
lib/Vend/Interpolate.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Sat Feb 16 01:47:01 EST 2008
User: kwalsh
Date: 2008-02-16 06:47:00 GMT
Modified: lib/Vend Interpolate.pm
Log:
* Give the "flypage" SpecialSub the choice of returning a plain SKU
value rather than the overly-complicated { mv_results => [[$sku]] }
hashref.
Revision Changes Path
2.296 +3 -2 interchange/lib/Vend/Interpolate.pm
rev 2.296, prev_rev 2.295
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.295
retrieving revision 2.296
diff -u -r2.295 -r2.296
--- Interpolate.pm 11 Feb 2008 21:37:47 -0000 2.295
+++ Interpolate.pm 16 Feb 2008 06:47:00 -0000 2.296
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.295 2008/02/11 21:37:47 mheins Exp $
+# $Id: Interpolate.pm,v 2.296 2008/02/16 06:47:00 kwalsh Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.295 $, 10);
+$VERSION = substr(q$Revision: 2.296 $, 10);
@EXPORT = qw (
@@ -4947,6 +4947,7 @@
if ($subname = $Vend::Cfg->{SpecialSub}{flypage}) {
my $sub = $Vend::Cfg->{Sub}{$subname} || $Global::GlobalSub->{$subname};
$listref = $sub->($code);
+ $listref = { mv_results => [[$listref]] } unless ref($listref);
$base = $listref;
}
else {
More information about the interchange-cvs
mailing list