From b2c7692a59ca94a3fc915a111f0453b4bbd9f6ae Mon Sep 17 00:00:00 2001 From: vv221 Date: Sun, 5 Apr 2020 18:24:59 +0200 Subject: [PATCH] Fix generation of link back to main page --- MenuItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));