diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-18 14:14:53 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-18 14:48:54 -0400 |
commit | 1f9024763d9224c4cd9a181bac27e6b9f12ad672 (patch) | |
tree | 00f827470dad9aa2692483acbdef9502c1a464d3 /src/web/helpers/lang.php | |
parent | fix rss (diff) | |
download | website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.gz website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.bz2 website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.zip |
refactor
Diffstat (limited to 'src/web/helpers/lang.php')
-rw-r--r-- | src/web/helpers/lang.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <?php /* Copyright (c) 2024 Freya Murphy */ -$lang = array(); +$__lang = array(); /** * @param ?array<string,mixed> $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); |