[frio] Fix help TOC display
This commit is contained in:
parent
8d84f33f15
commit
e6dccc42e4
|
@ -84,7 +84,7 @@ function help_content(App $a)
|
||||||
$level = intval($level);
|
$level = intval($level);
|
||||||
if ($level < $lastlevel) {
|
if ($level < $lastlevel) {
|
||||||
for ($k = $level; $k < $lastlevel; $k++) {
|
for ($k = $level; $k < $lastlevel; $k++) {
|
||||||
$toc .= "</ul>";
|
$toc .= "</ul></li>";
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($k = $level + 1; $k < count($idnum); $k++) {
|
for ($k = $level + 1; $k < count($idnum); $k++) {
|
||||||
|
@ -93,7 +93,7 @@ function help_content(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($level > $lastlevel) {
|
if ($level > $lastlevel) {
|
||||||
$toc .= "<ul>";
|
$toc .= "<li><ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$idnum[$level] ++;
|
$idnum[$level] ++;
|
||||||
|
|
Loading…
Reference in a new issue