[Bps-public-commit] r14350 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Jul 21 20:30:08 EDT 2008


Author: sartak
Date: Mon Jul 21 20:30:08 2008
New Revision: 14350

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Record.pm

Log:
 r64698 at onn:  sartak | 2008-07-21 20:27:31 -0400
 In list context, format_summary will just return the list of atoms


Modified: Prophet/trunk/lib/Prophet/Record.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Record.pm	(original)
+++ Prophet/trunk/lib/Prophet/Record.pm	Mon Jul 21 20:30:08 2008
@@ -361,7 +361,6 @@
 
 sub format_summary {
     my $self = shift;
-    my $html = shift;
 
     my $configured_format =
          $self->app_handle->config->get('summary_format_'.$self->type) 
@@ -381,6 +380,8 @@
             }
             push @out, $self->format_atom( $format_string => $prop);
     }
+
+    return @out if wantarray;
     return join(' ', @out);
 
 }



More information about the Bps-public-commit mailing list