mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-29 06:18:10 +02:00
fix Lang
This commit is contained in:
parent
0e81db5ada
commit
bf00b21786
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ class Lang
|
||||||
public static function T($key)
|
public static function T($key)
|
||||||
{
|
{
|
||||||
global $_L, $lan_file, $config;
|
global $_L, $lan_file, $config;
|
||||||
$_L = $_SESSION['Lang'];
|
if(is_array($_SESSION['Lang'])){
|
||||||
|
$_L = array_merge($_L, $_SESSION['Lang']);
|
||||||
|
}
|
||||||
$key = preg_replace('/\s+/', ' ', $key);
|
$key = preg_replace('/\s+/', ' ', $key);
|
||||||
if (!empty($_L[$key])) {
|
if (!empty($_L[$key])) {
|
||||||
return $_L[$key];
|
return $_L[$key];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue