[Jifty-commit] r3749 - in jifty/trunk: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Jul 31 22:33:02 EDT 2007


Author: sterling
Date: Tue Jul 31 22:33:01 2007
New Revision: 3749

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm

Log:
 r8269 at dynpc145:  andrew | 2007-07-31 21:29:42 -0500
 Fixed the way arguments are passed to the render() method in Jifty::Plugin::Chart::Web.


Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Web.pm	Tue Jul 31 22:33:01 2007
@@ -101,8 +101,13 @@
         @_,
     );
 
+    # Turn any subs into values returned
+    for my $key (keys %args) {
+        $args{$key} = $args{$key}->(\%args) if ref $args{$key} eq 'CODE';
+    }
+
     # Call the rendering plugin's render method
-    return $plugin->render(@_);
+    return $plugin->render(%args);
 }
 
 =head1 SEE ALSO


More information about the Jifty-commit mailing list