diff options
Diffstat (limited to 'src/view/NavBuilder.php')
| -rw-r--r-- | src/view/NavBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/NavBuilder.php b/src/view/NavBuilder.php index 2cded67..03b4c97 100644 --- a/src/view/NavBuilder.php +++ b/src/view/NavBuilder.php | |||
| @@ -13,9 +13,9 @@ class NavBuilder extends AbstractBuilder | |||
| 13 | public function __construct(Node $node = null) | 13 | public function __construct(Node $node = null) |
| 14 | { | 14 | { |
| 15 | $this->html .= '<nav class="nav_main"><ul>'; | 15 | $this->html .= '<nav class="nav_main"><ul>'; |
| 16 | if(count(Model::$menu_data->getChildren()) > 1){ | 16 | if(count(Model::$menu->getChildren()) > 1){ |
| 17 | $this->html .= $this->navMainHTML( | 17 | $this->html .= $this->navMainHTML( |
| 18 | Model::$menu_data, // Menu étend Page | 18 | Model::$menu, // Menu étend Page |
| 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model | 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model |
| 20 | } | 20 | } |
| 21 | $this->html .= '</ul></nav>'; | 21 | $this->html .= '</ul></nav>'; |
