1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

Fixes #4669 - Forum print issue.

This commit is contained in:
Cameron
2022-03-10 12:54:22 -08:00
parent 9c6a5e96fe
commit 743edf8917
3 changed files with 11 additions and 31 deletions

View File

@@ -6,28 +6,7 @@ function print_item($thread_id)
// moved to e_print.php
}
function email_item($thread_id)
{
global $tp;
$gen = new convert;
include_once(e_PLUGIN.'forum/forum_class.php');
$forum = new e107forum;
$thread_info = $forum->threadGet($thread_id,0,999);
$thread_name = $tp->toHTML($thread_info[0]['thread_name'], TRUE);
$text = "<b>".$thread_name."</b><br />
".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."<br /><br />
".$tp->toHTML($thread_info[0]['thread_thread'], TRUE);
$count = 1;
unset($thread_info[0], $thread_info['head']);
foreach($thread_info as $reply)
{
$text .= "<br /><br />Re: <b>".$thread_name."</b><br />
".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."<br /><br />
".$tp->toHTML($reply['thread_thread'], TRUE);
}
return $text;
return e107::getAddon('forum','e_print')->render($thread_id); // Quick Fix
}