summaryrefslogtreecommitdiff
path: root/src/web/helpers/lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/helpers/lang.php')
-rw-r--r--src/web/helpers/lang.php4
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);