diff options
-rw-r--r-- | templates/bbcode.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/bbcode.inc.php b/templates/bbcode.inc.php index a3a07f5..6620c91 100644 --- a/templates/bbcode.inc.php +++ b/templates/bbcode.inc.php @@ -2,6 +2,13 @@ Uses('bbcode', 'links'); class bbcode_template { + function GetTitle($data) { + if($data['title']) + return htmlspecialchars($data['title']); + + return strtr($data['_page'], array(':' => ' - ')); + } + function GetPage($data) { if($data['title']) $title = htmlspecialchars($data['title']); |