Fix generation of link back to main page

This commit is contained in:
vv221 2020-05-01 20:20:18 +02:00
parent c10599048e
commit 02692388ca

View file

@ -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 ) {