From 16492af7eadfb044c8ad563588ce02d7245b823e Mon Sep 17 00:00:00 2001 From: fox_two <> Date: Sun, 13 Jan 2002 19:33:27 +0000 Subject: [PATCH] support for fo_delete.pl --- selfforum-cgi/shared/Template/Posting.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/selfforum-cgi/shared/Template/Posting.pm b/selfforum-cgi/shared/Template/Posting.pm index 3fafa4a..3f75b8b 100644 --- a/selfforum-cgi/shared/Template/Posting.pm +++ b/selfforum-cgi/shared/Template/Posting.pm @@ -65,11 +65,12 @@ use base qw(Exporter); # # Return: -none- # -sub print_posting_as_HTML ($$$) { +sub print_posting_as_HTML ($$$;$) { my ($threadpath, $tempfile, $param) = @_; my $template = new Template $tempfile; my $assign = $param -> {assign}; + my $show_deleted = $param->{showDeleted}; my $view = get_view_params ({ adminDefault => $param -> {adminDefault} @@ -105,7 +106,8 @@ sub print_posting_as_HTML ($$$) { else { my ($mnode, $tnode) = get_message_node ($xml, 't'.$param -> {thread}, 'm'.$param -> {posting}); - unless ($mnode and not $mnode->getAttribute('invisible')) { + # do not show if not wanted + if(!$mnode || ($mnode->getAttribute('invisible') && !$show_deleted)) { # and not $mnode->getAttribute('invisible')) { print ${$template -> scrap ( $assign -> {errorDoc}, { $assign -> {errorText} => $template -> insert ($assign -> {'notAvailable'}) } @@ -257,4 +259,4 @@ sub message_as_HTML ($$$) { # # -### end of Template::Posting ################################################### \ No newline at end of file +### end of Template::Posting ################################################### -- 2.34.1