diff options
Diffstat (limited to 'src/model/Path.php')
| -rw-r--r-- | src/model/Path.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/model/Path.php b/src/model/Path.php index 0b4bb67..4303952 100644 --- a/src/model/Path.php +++ b/src/model/Path.php | |||
| @@ -51,8 +51,6 @@ class Path extends Page | |||
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | // rien trouvé | 53 | // rien trouvé |
| 54 | // pas parfait, échoue si le premier enfant de "children" n'est pas au premier niveau | ||
| 55 | // est-ce que ça peut arriver? | ||
| 56 | header('Location: '. new URL(['page' => Model::$menu->getChildren()[0]->getEndOfPath()])); | 54 | header('Location: '. new URL(['page' => Model::$menu->getChildren()[0]->getEndOfPath()])); |
| 57 | die; | 55 | die; |
| 58 | } | 56 | } |
