diff --git a/action.php b/action.php index dccc97c..8a439ee 100644 --- a/action.php +++ b/action.php @@ -48,7 +48,7 @@ class action_plugin_childrenpages extends DokuWiki_Action_Plugin { $is_child_page = in_array($top_namespace, $children_types); if ( $show_all_links || $is_child_page ) { $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 foreach ( $children_types as $child_type ) {