Fix generation of link back to main page
This commit is contained in:
parent
c10599048e
commit
02692388ca
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class action_plugin_childrenpages extends DokuWiki_Action_Plugin {
|
||||||
$is_child_page = in_array($top_namespace, $children_types);
|
$is_child_page = in_array($top_namespace, $children_types);
|
||||||
if ( $show_all_links || $is_child_page ) {
|
if ( $show_all_links || $is_child_page ) {
|
||||||
$main_label = $this->getLang('btn_main');
|
$main_label = $this->getLang('btn_main');
|
||||||
$this->addMenuItem($event, '_main', $main_label, $top_namespace);
|
$this->addMenuItem($event, '_main', $main_label, $is_child_page);
|
||||||
}
|
}
|
||||||
// Add menu items for each child page
|
// Add menu items for each child page
|
||||||
foreach ( $children_types as $child_type ) {
|
foreach ( $children_types as $child_type ) {
|
||||||
|
|
Loading…
Reference in a new issue