diff --git a/e107_plugins/forum/e_emailprint.php b/e107_plugins/forum/e_emailprint.php
index 98d02e384..e782488f0 100755
--- a/e107_plugins/forum/e_emailprint.php
+++ b/e107_plugins/forum/e_emailprint.php
@@ -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 = "".$thread_name."
- ".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."
- ".$tp->toHTML($thread_info[0]['thread_thread'], TRUE);
-
- $count = 1;
-
- unset($thread_info[0], $thread_info['head']);
- foreach($thread_info as $reply)
- {
- $text .= "
Re: ".$thread_name."
- ".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."
- ".$tp->toHTML($reply['thread_thread'], TRUE);
- }
- return $text;
+ return e107::getAddon('forum','e_print')->render($thread_id); // Quick Fix
}
\ No newline at end of file
diff --git a/e107_plugins/forum/e_print.php b/e107_plugins/forum/e_print.php
index d60df5829..a6a261564 100644
--- a/e107_plugins/forum/e_print.php
+++ b/e107_plugins/forum/e_print.php
@@ -15,7 +15,7 @@ class forum_print // plugin-folder + '_print'
//print_a($thread_info);
// Check if user is allowed to view this forum topic
- if(!$forum->checkPerm($thread_info['thread_forum_id'], 'view'))
+ if(!$forum->checkPerm($thread_info['thread_forum_id']))
{
return LAN_FORUM_0008;
}
@@ -28,12 +28,12 @@ class forum_print // plugin-folder + '_print'
$topic_name = e107::getParser()->toHTML($thread_info['thread_name'], true);
// Display topic name
- $text .= "".$topic_name."
";
+ $text .= "