From bf00b21786c0d5614523aabd398c4a5ad78336a7 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Sun, 21 Apr 2024 20:25:59 +0700 Subject: [PATCH] fix Lang --- system/autoload/Lang.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/autoload/Lang.php b/system/autoload/Lang.php index 385bb06a..46f101a8 100644 --- a/system/autoload/Lang.php +++ b/system/autoload/Lang.php @@ -11,7 +11,9 @@ class Lang public static function T($key) { global $_L, $lan_file, $config; - $_L = $_SESSION['Lang']; + if(is_array($_SESSION['Lang'])){ + $_L = array_merge($_L, $_SESSION['Lang']); + } $key = preg_replace('/\s+/', ' ', $key); if (!empty($_L[$key])) { return $_L[$key];