]> git.p6c8.net - selfforum.git/commitdiff
hide_posting(), recover_posting(): bugfix: save file after changing it.
authorfox_two <>
Thu, 8 Mar 2001 20:30:36 +0000 (20:30 +0000)
committerfox_two <>
Thu, 8 Mar 2001 20:30:36 +0000 (20:30 +0000)
selfforum-cgi/shared/Posting/Handle.pm

index 9d2a94abcf1582390e336dd1adbef1f29314d316..246f4e7fbd4651dd1b970313255df0b2feba2772 100644 (file)
@@ -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 () ###############################################

patrick-canterino.de