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

Added {FORUMDESCRIPTION} to forum_viewforum.php

This commit is contained in:
Tijn Kuyper
2019-04-03 12:31:21 +02:00
parent 87010ec6d2
commit 7ea518e4fa
2 changed files with 10 additions and 0 deletions

View File

@@ -155,6 +155,15 @@
return $this->var['forum_name'];
}
function sc_forumdescription()
{
// global $f, $restricted_string;
global $restricted_string;
// $tp = e107::getParser();
$this->var['forum_description'] = e107::getParser()->toHTML($this->var['forum_description'], true, 'no_hook');
return $this->var['forum_description'].($restricted_string ? "<br /><span class='smalltext'><i>$restricted_string</i></span>" : "");
}
function sc_moderators()
{
return is_array($this->var['modUser']) ? implode(", ",$this->var['modUser']) : $this->var['modUser'];