[Jifty-commit] r2760 - Template-Declare/lib/Template/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Feb 7 22:45:57 EST 2007
Author: audreyt
Date: Wed Feb 7 22:45:56 2007
New Revision: 2760
Modified:
Template-Declare/lib/Template/Declare/Buffer.pm
Log:
* Buffer.pm: Fix the bug where existing content '0' will be eaten away;
also squash warnings.
Modified: Template-Declare/lib/Template/Declare/Buffer.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Buffer.pm (original)
+++ Template-Declare/lib/Template/Declare/Buffer.pm Wed Feb 7 22:45:56 2007
@@ -6,13 +6,12 @@
__PACKAGE__->mk_accessors('data');
-
-
-
sub append {
my $self = shift;
my $content = shift;
- $self->data(($self->data||'').$content);
+
+ no warnings 'uninitialized';
+ $self->data($self->data.$content);
}
sub clear {
More information about the Jifty-commit
mailing list