diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-11-01 12:35:45 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-11-01 12:35:45 +0100 |
commit | e727b367cc77452b58bc2d9360bcde97b7572288 (patch) | |
tree | b5dc6720cd4a8a73f960669c9b3a068b8f731a24 /public/index.php | |
parent | e55d5c7c15411eb58dd99113d94ee8ba55fd414a (diff) |
Moved includes to own file
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index c65dbdf8..69d92127 100644 --- a/public/index.php +++ b/public/index.php @@ -1,6 +1,8 @@ <?php -require_once realpath(__DIR__ . '/../includes/engelsystem_provider.php'); +use Engelsystem\Http\Request; + +require_once realpath(__DIR__ . '/../includes/engelsystem.php'); $free_pages = [ 'admin_event_config', @@ -25,6 +27,8 @@ $page = ''; $title = ''; $content = ''; +/** @var Request $request */ +$request = $app->get('request'); $page = $request->query->get('p'); if (empty($page)) { $page = $request->path(); |