summaryrefslogtreecommitdiff
path: root/src/web/_controller/_meta.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-10-20 16:49:11 -0400
committerFreya Murphy <freya@freyacat.org>2024-10-20 16:49:11 -0400
commitcec4fb7ede7fee7b5621c096f3d5a4863b7b484e (patch)
tree9f0af211e9b2f9035220d94d07cd8edf381f61c1 /src/web/_controller/_meta.php
parentupdate john (diff)
downloadwebsite-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.php12
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' => []