From f8149face55ecd720ef182c67c9c1aca7af4c2fe Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 11 Jan 2022 09:17:39 +0000 Subject: toc: add headings --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index fd92af61e..03115effe 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