From 161572b292600b8f1eab4049ddb6ab07f97a0126 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 4 Dec 2016 14:31:45 +0100 Subject: leave toc title for the author --- include/bbcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 396cbcb29..b315255f5 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -826,12 +826,12 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) // Check for table of content without params while(strpos($Text,'[toc]') !== false) { $toc_id = 'toc-' . random_string(10); - $Text = preg_replace("/\[toc\]/ism", '' . t('Contents:') . '', $Text, 1); + $Text = preg_replace("/\[toc\]/ism", '', $Text, 1); } // Check for table of content with params while(strpos($Text,'[toc') !== false) { $toc_id = 'toc-' . random_string(10); - $Text = preg_replace("/\[toc([^\]]+?)\]/ism", '' . t('Contents:') . '', $Text, 1); + $Text = preg_replace("/\[toc([^\]]+?)\]/ism", '', $Text, 1); } // Check for centered text if (strpos($Text,'[/center]') !== false) { -- cgit v1.2.3