add IO::String as a proper web interface dep, RT#19732
authorIvan Kohler <ivan@freeside.biz>
Tue, 4 Dec 2012 17:21:19 +0000 (09:21 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 4 Dec 2012 17:21:19 +0000 (09:21 -0800)
FS/FS/Mason.pm
httemplate/search/customer_accounting_summary.html

index 0047016..4b1f800 100644 (file)
@@ -83,6 +83,7 @@ if ( -e $addl_handler_use_file ) {
   use IO::Handle;
   use IO::File;
   use IO::Scalar;
+  use IO::String;
   #not actually using this yet anyway...# use IPC::Run3 0.036;
   use Net::Whois::Raw qw(whois);
   if ( $] < 5.006 ) {
index 5575283..e01b8cd 100644 (file)
@@ -9,8 +9,7 @@
   http_header('Content-Disposition' => qq!attachment;filename="$filename"!);
 
   my $output = '';
-  use IO::String;
-  my $XLS = IO::String->new($output);;
+  my $XLS = IO::String->new($output);
   my $workbook = $format->{class}->new($XLS)
     or die "Error opening .xls file: $!";