diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-10 01:30:05 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-10 23:53:02 +0300 |
commit | 1c524efbf7da91cb99bb4516feb514071e938495 (patch) | |
tree | e1fced0104749014db154f5d3b29881e705bfafc /engine/RequestDispatcher.php | |
parent | 8979719a1af4bc0712407db7f95704f645f261a3 (diff) |
dark theme support
Diffstat (limited to 'engine/RequestDispatcher.php')
-rw-r--r-- | engine/RequestDispatcher.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/RequestDispatcher.php b/engine/RequestDispatcher.php index 38b965d..3c3f684 100644 --- a/engine/RequestDispatcher.php +++ b/engine/RequestDispatcher.php @@ -39,11 +39,14 @@ class RequestDispatcher { } $skin = new Skin(); - $skin->static[] = '/css/common-bundle.css'; + $skin->static[] = '/css/common.css'; $skin->static[] = '/js/common.js'; + $lang = LangData::getInstance(); + $skin->addLangKeys($lang->search('/^theme_/')); + /** @var RequestHandler $handler */ - $handler = new $handler_class($skin, LangData::getInstance(), $router_input); + $handler = new $handler_class($skin, $lang, $router_input); $resp = $handler->beforeDispatch(); if ($resp instanceof Response) { $resp->send(); |