Skip to content
Permalink
Browse files

Only add mergehint if there are in fact more than one page.

  • Loading branch information...
gamma committed Aug 10, 2018
1 parent b01af20 commit 9c27c641818888b9cc9401f2ceb42c7b00e1fc83
Showing with 1 addition and 1 deletion.
  1. +1 −1 syntax/toc.php
@@ -175,7 +175,7 @@ public function render($mode, Doku_Renderer $renderer, $data) {
$renderer->doc = ''; // Start fresh!
$renderer->section_open("1 mergedsite" . ($renderer->meta['sitetoc']['mergehint'] ? ' mergehint' : ''));
$renderer->section_open("1 mergedsite" . ($renderer->meta['sitetoc']['mergehint'] && count($this->mergedPages) > 1 ? ' mergehint' : ''));
// Prepare lookup Array
foreach ($this->mergedPages as $tocItem) {

0 comments on commit 9c27c64

Please sign in to comment.
You can’t perform that action at this time.