aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-04 14:31:45 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-04 14:31:45 +0100
commit161572b292600b8f1eab4049ddb6ab07f97a0126 (patch)
tree8d5b2dd87562f61d1299f3bc9716686675fdab5f
parentb98fbcce0ce8ba68781cd006e2b12a2ff3303b43 (diff)
downloadvolse-hubzilla-161572b292600b8f1eab4049ddb6ab07f97a0126.tar.gz
volse-hubzilla-161572b292600b8f1eab4049ddb6ab07f97a0126.tar.bz2
volse-hubzilla-161572b292600b8f1eab4049ddb6ab07f97a0126.zip
leave toc title for the author
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
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", '<strong>' . t('Contents:') . '</strong><ul id="' . $toc_id . '" class="toc" data-toc=".section-content-wrapper"></ul><script>$("#' . $toc_id . '").toc();</script>', $Text, 1);
+ $Text = preg_replace("/\[toc\]/ism", '<ul id="' . $toc_id . '" class="toc" data-toc=".section-content-wrapper"></ul><script>$("#' . $toc_id . '").toc();</script>', $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", '<strong>' . t('Contents:') . '</strong><ul id="' . $toc_id . '" class="toc"$1></ul><script>$("#' . $toc_id . '").toc();</script>', $Text, 1);
+ $Text = preg_replace("/\[toc([^\]]+?)\]/ism", '<ul id="' . $toc_id . '" class="toc"$1></ul><script>$("#' . $toc_id . '").toc();</script>', $Text, 1);
}
// Check for centered text
if (strpos($Text,'[/center]') !== false) {