summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index bad1a21de..545f48b4e 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -84,7 +84,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
// Prepare the TOC
- if($this->info['toc'] && is_array($this->toc) && count($this->toc) > 2){
+ global $conf;
+ if($this->info['toc'] && is_array($this->toc) && $conf['tocminheads'] && count($this->toc) >= $conf['tocminheads']){
global $TOC;
$TOC = $this->toc;
}