From: <Cra...@nt...> - 2006-02-27 17:45:57
|
Author: CrawfordCurrie Date: 2006-02-27 09:42:36 -0800 (Mon, 27 Feb 2006) New Revision: 8968 Modified: twiki/branches/DEVELOP/lib/TWiki/Attach.pm Log: Item1743: merged better fix from TWIKI4 Modified: twiki/branches/DEVELOP/lib/TWiki/Attach.pm =================================================================== --- twiki/branches/DEVELOP/lib/TWiki/Attach.pm 2006-02-27 17:41:51 UTC (rev 8967) +++ twiki/branches/DEVELOP/lib/TWiki/Attach.pm 2006-02-27 17:42:36 UTC (rev 8968) @@ -79,7 +79,7 @@ my $showAll = $attrs->{all}; my $showAttr = $showAll ? 'h' : ''; - my $at = ( $showAttr ) ? ':A' : ''; + my $A = ( $showAttr ) ? ':A' : ''; my $title = $attrs->{title} || ''; my @attachments = $meta->find( 'FILEATTACHMENT' ); @@ -89,7 +89,7 @@ $templates->readTemplate('attachtables'); my $rows = ''; - my $row = $templates->expandTemplate('ATTACH:files:row'.$at); + my $row = $templates->expandTemplate('ATTACH:files:row'.$A); foreach my $attachment ( sort { $a->{date} <=> $b->{date} } @attachments ) { my $attrAttr = $attachment->{attr}; @@ -101,8 +101,8 @@ my $text = ''; if( $showAll || $rows ne '' ) { - my $header = $templates->expandTemplate('ATTACH:files:header'.$at); - my $footer = $templates->expandTemplate('ATTACH:files:footer'.$at); + my $header = $templates->expandTemplate('ATTACH:files:header'.$A); + my $footer = $templates->expandTemplate('ATTACH:files:footer'.$A); $text = $header.$rows.$footer; } |