diff options
author | neoraider <devnull@localhost> | 2006-12-14 01:07:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-12-14 01:07:02 +0100 |
commit | f9fea8d01ea6eb171e0775beb8e98acfaf7c0532 (patch) | |
tree | 1855c1f72ff9cae1cb55fffcb9e11b0abb2238eb /templates | |
parent | 366f92b1d43fc002691c4563660f4308d1f388a4 (diff) | |
download | bbcode-master.tar bbcode-master.zip |
Diffstat (limited to 'templates')
-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']); |