- change_posting_visibility($forum, 't'.$tid, 'm'.$mid, 1);
-
- #my $f = get_all_threads($forum, 1, 0);
- #for (@{f->{$tid}})
- #{
- # if ($_->{'mid'} == $mid)
- # {
- # $_->{'deleted'} = 1;
- # }
- #}
- #
- #create_forum_xml_string($f, );
+ #change_posting_visibility($forum, 't'.$tid, 'm'.$mid, 1); # OBSOLETE
+
+ my ($f, $lthread, $lmsg, $dtd, $zlev) = get_all_threads($forum, 1, 0);
+
+ for (@{$f->{$tid}})
+ {
+ if ($_->{'mid'} == $mid)
+ {
+ $_->{'deleted'} = 1;
+ }
+ }
+
+ my %cfxs = (
+ 'dtd' => $dtd,
+ 'lastMessage' => $lmsg,
+ 'lastThread' => $lthread
+ );
+ create_forum_xml_string($f, \%cfxs);