X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/ba659b53059e637777865e646f0f2a6fb7f2988e..03e918e15295c454bbcd6aa0e3a0459d99090afe:/selfforum-cgi/shared/Posting/Write.pm diff --git a/selfforum-cgi/shared/Posting/Write.pm b/selfforum-cgi/shared/Posting/Write.pm index d2444df..7e6ba97 100644 --- a/selfforum-cgi/shared/Posting/Write.pm +++ b/selfforum-cgi/shared/Posting/Write.pm @@ -1,25 +1,24 @@ -# Posting/Write.pm +package Posting::Write; -# ==================================================== -# Autor: n.d.p. / 2001-01-29 -# lm : n.d.p. / 2001-01-29 -# ==================================================== -# Funktion: -# Speicherung eines Postings -# ==================================================== +################################################################################ +# # +# File: shared/Posting/Write.pm # +# # +# Authors: André Malo , 2001-02-25 # +# # +# Description: Save a posting # +# # +################################################################################ use strict; -package Posting::Write; - -use vars qw(@ISA @EXPORT); +use vars qw(@EXPORT); +use base qw(Exporter); # ==================================================== # Funktionsexport # ==================================================== -require Exporter; -@ISA = qw(Exporter); @EXPORT = qw(write_posting); use Encode::Plain; $Encode::Plain::utf8 = 1; @@ -166,9 +165,11 @@ sub write_posting ($) { lastMessage => $mid, lastThread => 't'.$param -> {lastThread}}); - save_file ($param -> {forumFile}, $forum) or return $error{forumWrite};} + save_file ($param -> {forumFile}, $forum) or return $error{forumWrite}; + } - return (0, $thread, $mid);} + return (0, $thread, $mid); + } } # ==================================================== @@ -218,7 +219,7 @@ sub create_message ($$) { $header -> appendChild ($category); $header -> appendChild ($subject); $header -> appendChild ($date); - $message -> appendChild ($header); + $message -> appendChild ($header); $message; } @@ -277,4 +278,4 @@ sub create_new_thread ($) { # ==================================================== # end of Posting::Write -# ==================================================== \ No newline at end of file +# ====================================================