X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/ba659b53059e637777865e646f0f2a6fb7f2988e..aaff267fdddc495df3bfa2fc0eb0d20a76b6d220:/selfforum-cgi/shared/Posting/Write.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Posting/Write.pm b/selfforum-cgi/shared/Posting/Write.pm index d2444df..48941d1 100644 --- a/selfforum-cgi/shared/Posting/Write.pm +++ b/selfforum-cgi/shared/Posting/Write.pm @@ -1,26 +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 base qw(Exporter); # ==================================================== # Funktionsexport # ==================================================== -require Exporter; -@ISA = qw(Exporter); -@EXPORT = qw(write_posting); +@Posting::Write::EXPORT = qw(write_posting); use Encode::Plain; $Encode::Plain::utf8 = 1; use Encode::Posting; @@ -166,9 +164,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 +218,7 @@ sub create_message ($$) { $header -> appendChild ($category); $header -> appendChild ($subject); $header -> appendChild ($date); - $message -> appendChild ($header); + $message -> appendChild ($header); $message; }