[Jifty-commit] r5972 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Fri Oct 31 15:59:27 EDT 2008
Author: alexmv
Date: Fri Oct 31 15:59:27 2008
New Revision: 5972
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web.pm
Log:
r38808 at kohr-ah: chmrr | 2008-10-31 15:59:16 -0400
* In void context, render the link or button automatically.
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Fri Oct 31 15:59:27 2008
@@ -871,7 +871,11 @@
sub link {
my $self = shift;
- return Jifty::Web::Form::Clickable->new(@_)->generate;
+ if (not defined wantarray) {
+ Jifty::Web::Form::Clickable->new(@_)->generate->render;
+ } else {
+ return Jifty::Web::Form::Clickable->new(@_)->generate;
+ }
}
=head3 return PARAMHASH
More information about the Jifty-commit
mailing list