summaryrefslogtreecommitdiff
path: root/src/web/core/model.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/core/model.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/core/model.php')
-rw-r--r--src/web/core/model.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/web/core/model.php b/src/web/core/model.php
index c57fd5c..6a42a98 100644
--- a/src/web/core/model.php
+++ b/src/web/core/model.php
@@ -2,7 +2,10 @@
abstract class Model extends Component {
- public static function get_base_data(?string $app = NULL): array
+ /**
+ * @return array<string,mixed>
+ */
+ public static function get_base_data(?string $app = NULL): array
{
$data = array();
$data['title'] = lang('first_name');
@@ -10,8 +13,8 @@ abstract class Model extends Component {
$data['css'] = array();
$data['js'] = array();
- $style = $GLOBALS['style'];
- $js = $GLOBALS['js'];
+ $style = CONFIG['style'];
+ $js = CONFIG['js'];
if (!$app)
$app = CONTEXT['app'];