From 1796c6e1465cc312b612701f6ee76b0768bdfdfb Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 7 Dec 2016 08:23:53 -0800 Subject: [PATCH] Fixes #2100 toBadge() method added for Bootstrap badge numbers. --- e107_handlers/e_parse_class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index a021f3b2b..9e387137f 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -3569,9 +3569,17 @@ class e_parser //$text = preg_replace('/\[(i_[\w]*)\]/',"", $text); // return $text; } - + /** + * @param $text + * @return string + */ + public function toBadge($text) + { + return "".$text.""; + } + /**