]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Posting/Handle.pm
hide_posting(), recover_posting(): bugfix: save file after changing it.
[selfforum.git] / 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