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/core/model.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/web/core/model.php') 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 + */ + 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']; -- cgit v1.2.3-freya