[Jifty-commit] r7629 - jifty/trunk/lib/Jifty/Web
Jifty commits
jifty-commit at lists.jifty.org
Wed Nov 18 02:38:32 EST 2009
Author: c9s
Date: Wed Nov 18 02:38:31 2009
New Revision: 7629
Modified:
jifty/trunk/lib/Jifty/Web/FileUpload.pm
Log:
fix file content overloading, which should call content as a method , not a class function
Modified: jifty/trunk/lib/Jifty/Web/FileUpload.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/FileUpload.pm (original)
+++ jifty/trunk/lib/Jifty/Web/FileUpload.pm Wed Nov 18 02:38:31 2009
@@ -6,8 +6,8 @@
__PACKAGE__->mk_accessors(qw(filehandle content filename content_type));
use overload (
- q{""} => 'content',
- '*{}' => 'filehandle',
+ q{""} => sub { $_[0]->content },
+ '*{}' => sub { $_[0]->filehandle },
fallback => 1,
);
@@ -88,7 +88,6 @@
$self->content($args{content});
$self->filename($args{filename});
$self->content_type($args{content_type});
-
return $self;
}
More information about the Jifty-commit
mailing list