diff options
author | Freya Murphy <freya@freyacat.org> | 2024-10-20 16:49:11 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-10-20 16:49:11 -0400 |
commit | cec4fb7ede7fee7b5621c096f3d5a4863b7b484e (patch) | |
tree | 9f0af211e9b2f9035220d94d07cd8edf381f61c1 /src/web/_controller/_meta.php | |
parent | update john (diff) | |
download | website-cec4fb7ede7fee7b5621c096f3d5a4863b7b484e.tar.gz website-cec4fb7ede7fee7b5621c096f3d5a4863b7b484e.tar.bz2 website-cec4fb7ede7fee7b5621c096f3d5a4863b7b484e.zip |
refactor config and add allowed_hosts
Diffstat (limited to 'src/web/_controller/_meta.php')
-rw-r--r-- | src/web/_controller/_meta.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/web/_controller/_meta.php b/src/web/_controller/_meta.php index 4500175..9ea3f47 100644 --- a/src/web/_controller/_meta.php +++ b/src/web/_controller/_meta.php @@ -48,9 +48,11 @@ class _meta_controller extends Controller { public function manifest(): void { + $domain = CONFIG['domain']; + $theme_color = CONFIG['theme_color']; $json = array( - 'short_name' => lang('domain'), - 'name' => lang('domain'), + 'short_name' => $domain, + 'name' => $domain, 'icons' => [ array( 'src' => $this->get_url('public/icons/logo512.png'), @@ -61,10 +63,10 @@ class _meta_controller extends Controller { ], 'id' => $this->get_url('home'), 'start_url' => $this->get_url('home'), - 'background_color' => lang('theme_color'), + 'background_color' => $theme_color, 'display' => 'standalone', - 'scope' => lang('base_path'), - 'theme_color' => lang('theme_color'), + 'scope' => CONFIG['base_path'], + 'theme_color' => $theme_color, 'shortcuts' => [], 'description' => lang('default_short_desc'), 'screenshots' => [] |