Fix generation of link back to main page
This commit is contained in:
parent
8dc402606e
commit
b2c7692a59
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue