From: fox_two <> Date: Thu, 8 Mar 2001 20:30:36 +0000 (+0000) Subject: hide_posting(), recover_posting(): bugfix: save file after changing it. X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/4b009585d72cb50762e6cbea18f2b79ff92278db?ds=inline;hp=d8a1fb31ed6883aef6a7ba78a117269218966a10 hide_posting(), recover_posting(): bugfix: save file after changing it. --- diff --git a/selfforum-cgi/shared/Posting/Handle.pm b/selfforum-cgi/shared/Posting/Handle.pm index 9d2a94a..246f4e7 100644 --- a/selfforum-cgi/shared/Posting/Handle.pm +++ b/selfforum-cgi/shared/Posting/Handle.pm @@ -60,7 +60,8 @@ sub hide_posting($$$) 'lastMessage' => $lmsg, 'lastThread' => $lthread ); - create_forum_xml_string($f, \%cfxs); + my $xmlstring = create_forum_xml_string($f, \%cfxs); + save_file($forum, $$xmlstring); } ### recover_posting() ########################################################## @@ -101,7 +102,8 @@ sub recover_posting($$$) 'lastMessage' => $lmsg, 'lastThread' => $lthread ); - create_forum_xml_string($f, \%cfxs); + my $xmlstring = create_forum_xml_string($f, \%cfxs); + save_file($forum, $$xmlstring); } ### change_posting_visibility () ###############################################