X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/10eefa1f9b43420c8609f5809bfe9dd81ebaca7d..1e5e0364f9fc5f0a3dbac69f9affbb3931115a58:/selfforum-cgi/shared/Template/_thread.pm?ds=inline diff --git a/selfforum-cgi/shared/Template/_thread.pm b/selfforum-cgi/shared/Template/_thread.pm index 7b65d1d..f4ee5b2 100644 --- a/selfforum-cgi/shared/Template/_thread.pm +++ b/selfforum-cgi/shared/Template/_thread.pm @@ -4,27 +4,40 @@ package Template::_thread; # # # File: shared/Template/_thread.pm # # # -# Authors: Andre Malo , 2001-04-02 # +# Authors: André Malo # # # # Description: convert parsed thread to HTML # # # ################################################################################ use strict; +use vars qw( + @EXPORT +); use Encode::Plain; $Encode::Plain::utf8 = 1; use Posting::_lib qw(short_hr_time); use Template; use Template::_query; +################################################################################ +# +# Version check +# +# last modified: +# $Date$ (GMT) +# by $Author$ +# +sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'} + ################################################################################ # # Export # use base qw(Exporter); -@Template::_thread::EXPORT = qw(html_thread); +@EXPORT = qw(html_thread); -### sub html_thread ($$$) ###################################################### +### html_thread () ############################################################# # # create HTML string # @@ -70,7 +83,9 @@ sub html_thread ($$$) { $temp -> {subject} => $_ -> {subject}, $temp -> {cat} => $_ -> {cat}, $temp -> {time} => plain(short_hr_time ($_ -> {time})), - $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}) + $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}), + $temp -> {tid} => $tid, + $temp -> {mid} => $_ -> {mid}, }, $par -> {addParam} )} . @@ -90,7 +105,9 @@ sub html_thread ($$$) { $temp -> {subject} => $_ -> {subject}, $temp -> {cat} => $_ -> {cat}, $temp -> {time} => plain(short_hr_time ($_ -> {time})), - $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}) + $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}), + $temp -> {tid} => $tid, + $temp -> {mid} => $_ -> {mid}, }, $par -> {addParam} )}. @@ -134,7 +151,9 @@ sub html_thread ($$$) { $temp -> {subject} => $_ -> {subject}, $temp -> {cat} => $_ -> {cat}, $temp -> {time} => plain(short_hr_time ($_ -> {time})), - $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}) + $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}), + $temp -> {tid} => $tid, + $temp -> {mid} => $_ -> {mid}, }, $par -> {addParam} )}. @@ -153,7 +172,9 @@ sub html_thread ($$$) { $temp -> {subject} => $_ -> {subject}, $temp -> {cat} => $_ -> {cat}, $temp -> {time} => plain(short_hr_time ($_ -> {time})), - $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}) + $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}), + $temp -> {tid} => $tid, + $temp -> {mid} => $_ -> {mid}, }, $par -> {addParam} )}. @@ -165,10 +186,9 @@ sub html_thread ($$$) { \$html; } -# keep require happy +# keep 'require' happy 1; # # -### end of Template::_thread ################################################### - +### end of Template::_thread ################################################### \ No newline at end of file