From cec4fb7ede7fee7b5621c096f3d5a4863b7b484e Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 20 Oct 2024 16:49:11 -0400 Subject: refactor config and add allowed_hosts --- src/web/_controller/_meta.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/web/_controller/_meta.php') 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' => [] -- cgit v1.2.3-freya