diff --git a/dispatcher.php b/dispatcher.php index 2328005..23234b0 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -73,8 +73,9 @@ foreach ($ROUTES as $route => $file) { exit(); } + $view = $file[0]; /** @noinspection PhpIncludeInspection */ - require $file[0]; + require $view; exit(); } } diff --git a/server_files/views/header.php b/server_files/views/header.php index 8689a06..031317a 100644 --- a/server_files/views/header.php +++ b/server_files/views/header.php @@ -115,4 +115,9 @@