From 5b50454b4de665a93d95ce368929ae924e3cfc46 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 9 Jan 2022 20:44:30 +0000 Subject: make toc bbcode find its own container by default --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 6a1a5a01e..fd92af61e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1400,7 +1400,7 @@ function bbcode($Text, $options = []) { // Check for table of content without params while(strpos($Text,'[toc]') !== false) { $toc_id = 'toc-' . random_string(10); - $Text = preg_replace("/\[toc\]/ism", '', $Text, 1); + $Text = preg_replace("/\[toc\]/ism", '', $Text, 1); } // Check for table of content with params while(strpos($Text,'[toc') !== false) { -- cgit v1.2.3