|
|
@ -384,14 +384,14 @@ $server->setHandler( |
|
|
|
if ($sections = $helper->getChildrenSectionLinksByUri($uri)) |
|
|
|
if ($sections = $helper->getChildrenSectionLinksByUri($uri)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Append header |
|
|
|
// Append header |
|
|
|
$lines[] = null; |
|
|
|
$menu[] = null; |
|
|
|
$menu[] = sprintf( |
|
|
|
$menu[] = sprintf( |
|
|
|
'### %s', |
|
|
|
'### %s', |
|
|
|
$config->string->sections |
|
|
|
$config->string->sections |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Append sections |
|
|
|
// Append sections |
|
|
|
$lines[] = null; |
|
|
|
$menu[] = null; |
|
|
|
foreach ($sections as $section) |
|
|
|
foreach ($sections as $section) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$menu[] = $section; |
|
|
|
$menu[] = $section; |
|
|
@ -402,14 +402,14 @@ $server->setHandler( |
|
|
|
if ($pages = $helper->getChildrenPageLinksByUri($uri)) |
|
|
|
if ($pages = $helper->getChildrenPageLinksByUri($uri)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Append header |
|
|
|
// Append header |
|
|
|
$lines[] = null; |
|
|
|
$menu[] = null; |
|
|
|
$menu[] = sprintf( |
|
|
|
$menu[] = sprintf( |
|
|
|
'### %s', |
|
|
|
'### %s', |
|
|
|
$config->string->pages |
|
|
|
$config->string->pages |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Append pages |
|
|
|
// Append pages |
|
|
|
$lines[] = null; |
|
|
|
$menu[] = null; |
|
|
|
foreach ($pages as $page) |
|
|
|
foreach ($pages as $page) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$menu[] = $page; |
|
|
|
$menu[] = $page; |
|
|
|