- $tpl->add_loop_data('SUCCESS',{FILE => encode_html($file_success),
- FILE_PATH => encode_html(clean_path($virtual.'/'.$file_success))});
+ $tpl->parse_if_block('success',1);
+
+ foreach my $file_success(@success)
+ {
+ $tpl->add_loop_data('SUCCESS',{FILE => encode_html($file_success),
+ FILE_PATH => encode_html(clean_path($virtual.'/'.$file_success))});
+ }