From 1f9024763d9224c4cd9a181bac27e6b9f12ad672 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 18 Sep 2024 14:14:53 -0400 Subject: refactor --- src/web/helpers/lang.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web/helpers/lang.php') diff --git a/src/web/helpers/lang.php b/src/web/helpers/lang.php index b11cc7c..ba7616e 100644 --- a/src/web/helpers/lang.php +++ b/src/web/helpers/lang.php @@ -1,5 +1,5 @@ $sub @@ -8,7 +8,7 @@ function lang( string $key, ?string $default = NULL, ?array $sub = NULL) { - $lang = $GLOBALS['lang']; + $lang = $GLOBALS['__lang']; if(array_key_exists($key, $lang)) { if ($sub) { return sprintf($lang[$key], ...$sub); -- cgit v1.2.3-freya