X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/f247cc770243a474bbba7845094047e0995b9746..ed51db7a7c49a51ad614a9d62625d3425281ad3f:/selfforum-cgi/shared/Posting/Write.pm diff --git a/selfforum-cgi/shared/Posting/Write.pm b/selfforum-cgi/shared/Posting/Write.pm index 72a5b25..48941d1 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-02-25 -# ==================================================== -# 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(@EXPORT); use base qw(Exporter); # ==================================================== # Funktionsexport # ==================================================== -@EXPORT = qw(write_posting); +@Posting::Write::EXPORT = qw(write_posting); use Encode::Plain; $Encode::Plain::utf8 = 1; use Encode::Posting; @@ -165,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); + } } # ==================================================== @@ -217,7 +218,7 @@ sub create_message ($$) { $header -> appendChild ($category); $header -> appendChild ($subject); $header -> appendChild ($date); - $message -> appendChild ($header); + $message -> appendChild ($header); $message; }