-# 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 <nd@o3media.de>, 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;
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);
+ }
}
# ====================================================
$header -> appendChild ($category);
$header -> appendChild ($subject);
$header -> appendChild ($date);
- $message -> appendChild ($header);
+ $message -> appendChild ($header);
$message;
}