diff --git a/MenuItem.php b/MenuItem.php index 76daf4e..87a9f56 100644 --- a/MenuItem.php +++ b/MenuItem.php @@ -62,7 +62,7 @@ class MenuItem extends AbstractItem { } // Add namespace of the target child page, unless the special value "_main" has been used // "_main" is used to generate a link back to the main parent page - if ( $this->type !== '_main' ) { + if ( $type !== '_main' ) { $target_path[] = $type; } $this->id = implode(':', array_merge($target_path, $page_path));