mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
55d3818ebb
commit
38a6df91b9
@ -150,12 +150,12 @@ class DocParser
|
||||
$nofollow = false;
|
||||
}
|
||||
if ($stack->isEmpty()) {
|
||||
$chapterName = $header;
|
||||
$section = new Section($id, $header, $level, $nofollow, $chapterName);
|
||||
$chapterTitle = $header;
|
||||
$section = new Section($id, $header, $level, $nofollow, $chapterTitle);
|
||||
$tree->addRoot($section);
|
||||
} else {
|
||||
$chapterName = $stack->bottom()->getTitle();
|
||||
$section = new Section($id, $header, $level, $nofollow, $chapterName);
|
||||
$chapterTitle = $stack->bottom()->getTitle();
|
||||
$section = new Section($id, $header, $level, $nofollow, $chapterTitle);
|
||||
$tree->addChild($section, $stack->top());
|
||||
}
|
||||
$stack->push($section);
|
||||
|
Loading…
x
Reference in New Issue
Block a user