#
my $saved = save_file (
$file => create_forum_xml_string (
- $threads,
+ $thash,
{
dtd => 'forum.dtd',
lastMessage => 0,
delete $obsolete{$_};
}
else {
- unless (unlink ($param->{messagePath}."t$_.xml")) {
+ my $tfile = new Lock ($param->{messagePath}."t$_.xml");
+ unless (unlink ($tfile->filename)) {
$failed{$_} = 'warning: could not delete thread file';
}
else {
push @removed => $_;
- #file_removed ($param->{messagePath}."t$_.xml");
+ $tfile -> purge;
}
}
}