This commit is contained in:
Ibnu Maksum 2024-04-21 20:25:59 +07:00
parent 0e81db5ada
commit bf00b21786
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -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];