1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Update forum.php

This commit is contained in:
rica-carv 2016-05-05 11:11:50 +01:00
parent 2adc6b9668
commit f398f3631d

View File

@ -405,14 +405,13 @@ function parse_forum($f, $restricted_string = '')
$f['forum_name'] = substr($f['forum_name'], 1);
}
$f['forum_name'] = $tp->toHTML($f['forum_name'], true, 'no_hook');
$f['forum_description'] = $tp->toHTML($f['forum_description'], true, 'no_hook');
$f['forum_description'] = $tp->toHTML($f['forum_description'], TRUE, "TITLE");
//$url= $e107->url->create('forum/forum/view', $f);
$url = e107::url('forum', 'forum', $f);
$fVars->FORUMNAME = "<a href='".$url."'>{$f['forum_name']}</a>";
$fVars->FORUMDESCRIPTION = $f['forum_description'].($restricted_string ? e107::getParser()->toHTML("<br /><span class='smalltext'><i>$restricted_string</i></span>", TRUE, "TITLE") : "");
$fVars->THREADS = $f['forum_threads'];
$fVars->FORUMDESCRIPTION = $f['forum_description'].($restricted_string ? "<br /><span class='smalltext'><i>$restricted_string</i></span>" : ""); $fVars->THREADS = $f['forum_threads'];
$fVars->REPLIES = $f['forum_replies'];
$fVars->FORUMSUBFORUMS = '';