X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/42e7ab8a13679442f2cd7524ab7fa38bb2166951..85946d0838c74882bd707bd1f5dbeeb7ea80944f:/selfforum-cgi/shared/Template/Posting.pm diff --git a/selfforum-cgi/shared/Template/Posting.pm b/selfforum-cgi/shared/Template/Posting.pm index 0ffb6c2..57c6b2a 100644 --- a/selfforum-cgi/shared/Template/Posting.pm +++ b/selfforum-cgi/shared/Template/Posting.pm @@ -4,13 +4,17 @@ package Template::Posting; # # # File: shared/Template/Posting.pm # # # -# Authors: Andre Malo , 2001-04-01 # +# Authors: Andre Malo , 2001-06-16 # # # # Description: show HTML formatted posting # # # ################################################################################ use strict; +use vars qw( + @EXPORT + $VERSION +); use Encode::Posting; use Encode::Plain; $Encode::Plain::utf8 = 1; @@ -32,17 +36,23 @@ use Template::_thread; use XML::DOM; +################################################################################ +# +# Version check +# +$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; + ################################################################################ # # Export # use base qw(Exporter); -@Template::Posting::EXPORT = qw( +@EXPORT = qw( print_posting_as_HTML message_as_HTML ); -### sub print_posting_as_HTML ($$$) ############################################ +### print_posting_as_HTML () ################################################### # # print HTML formatted Posting to STDOUT # @@ -153,6 +163,7 @@ sub print_posting_as_HTML ($$$) { }) } if (%$pheader); + $|++; print ${$template -> scrap ( $assign->{mainDoc}, { $assign->{name} => plain(defined $header->{name} ? $header->{name} : ''), @@ -183,7 +194,7 @@ sub print_posting_as_HTML ($$$) { close STDOUT; if ($param->{firsttime}) { - my $cache = new Posting::Cache ($param->{cachefile}); + my $cache = new Posting::Cache ($param->{cachepath}); $cache -> add_view ( { thread => $param -> {thread}, posting => $param -> {posting} @@ -196,7 +207,7 @@ sub print_posting_as_HTML ($$$) { return; } -### sub message_as_HTML ($$$) ################################################## +### message_as_HTML () ######################################################### # # create HTML String for the Messagetext # @@ -226,7 +237,7 @@ sub message_as_HTML ($$$) { $text; } -# keep require happy +# keep 'require' happy 1; #