Author: joes
Date: Thu Mar 20 23:51:16 2014
New Revision: 1579835
URL: http://svn.apache.org/r1579835
Log:
stack views
Modified:
thrift/cms-site/trunk/lib/view.pm
Modified: thrift/cms-site/trunk/lib/view.pm
URL:
http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1579835&r1=1579834&r2=1579835&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Thu Mar 20 23:51:16 2014
@@ -28,7 +28,7 @@ sub thrift_preprocessor {
"{{ " . $key++ . ".fetch$mdfilter }}";
}ge;
- my $view = ref $args{view} ? shift @{$args{view}} : $args{view};
+ my $view = ref $args{view} ? shift @{$args{view}} : delete $args{view};
return view->can($view)->(%args);
}