1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Issue #4332 - Bootstrap5 fix for toBadge()

This commit is contained in:
Cameron
2021-01-03 11:01:54 -08:00
parent 0958f41d9a
commit f9492a8c89
2 changed files with 2 additions and 2 deletions

View File

@@ -3360,7 +3360,7 @@ class e107
{
if(E107_DBG_BBSC)
{
self::getMessage()->addDebug("Found wrapper: ".$SC_WRAPPER);
self::getMessage()->addDebug("Found deprecated \$SC_WRAPPER: ".print_a($SC_WRAPPER, true));
}
self::scStyle($SC_WRAPPER);
}

View File

@@ -4348,7 +4348,7 @@ class e_parser
*/
public function toBadge($text, $parm=null)
{
$class = !empty($parm['class']) ? ' ' .$parm['class'] : ' badge-secondary';
$class = !empty($parm['class']) ? ' ' .$parm['class'] : ' bg-secondary rounded-pill badge-secondary';
return "<span class='badge".$class."'>".$text. '</span>';
}