From cb25fc031b2c063bcca2c7928fd0e7d01ab2793e Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 22 Mar 2024 08:23:44 +0000 Subject: use the correct tag for ordered lists --- include/bbcode.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index d4aeb369f..79cb82c0b 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1516,22 +1516,22 @@ function bbcode($text, $options = []) { $text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '', $text); $text = preg_replace_callback("/\[list=1\](.*?)\[\/list\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '', $text); + $text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '
    $1
', $text); $text = preg_replace_callback("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'', $text); + $text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'
    $2
', $text); $text = preg_replace_callback("/\[list=((?-i)I)\](.*?)\[\/list\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[list=((?-i)I)\](.*?)\[\/list\]/ism", '', $text); + $text = preg_replace("/\[list=((?-i)I)\](.*?)\[\/list\]/ism", '
    $2
', $text); $text = preg_replace_callback("/\[list=((?-i)a)\](.*?)\[\/list\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[list=((?-i)a)\](.*?)\[\/list\]/ism", '', $text); + $text = preg_replace("/\[list=((?-i)a)\](.*?)\[\/list\]/ism", '
    $2
', $text); $text = preg_replace_callback("/\[list=((?-i)A)\](.*?)\[\/list\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[list=((?-i)A)\](.*?)\[\/list\]/ism", '', $text); + $text = preg_replace("/\[list=((?-i)A)\](.*?)\[\/list\]/ism", '
    $2
', $text); $text = preg_replace_callback("/\[ol\](.*?)\[\/ol\]/ism",'bb_fix_lf', $text); - $text = preg_replace("/\[ol\](.*?)\[\/ol\]/ism", '', $text); + $text = preg_replace("/\[ol\](.*?)\[\/ol\]/ism", '
    $1
', $text); $text = preg_replace_callback("/\[ul\](.*?)\[\/ul\]/ism",'bb_fix_lf', $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/ism", '', $text); -- cgit v1.2.3