1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Change proposal of forum description

Changed proposal to parse embeded shortcodes on the forum description, if any present....
This commit is contained in:
rica-carv
2016-05-05 10:36:18 +01:00
parent 6f0f5ff8c8
commit 3b68240174

View File

@@ -411,7 +411,7 @@ function parse_forum($f, $restricted_string = '')
//$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 ? "<br /><span class='smalltext'><i>$restricted_string</i></span>" : "");
$fVars->FORUMDESCRIPTION = e107::getParser()->toHTML($f['forum_description'].($restricted_string ? "<br /><span class='smalltext'><i>$restricted_string</i></span>" : ""), TRUE, "TITLE");
$fVars->THREADS = $f['forum_threads'];
$fVars->REPLIES = $f['forum_replies'];
$fVars->FORUMSUBFORUMS = '';
@@ -775,4 +775,4 @@ function forum_track()
}
?>
?>