mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Updated
This commit is contained in:
parent
2e19d01e43
commit
b492b06431
2 changed files with 13 additions and 1 deletions
12
common.php
12
common.php
|
@ -350,6 +350,18 @@ function array_deep(&$var, $fn, $one_dimensional = false, $array_only = false, $
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function array_deep_merge($base, $overlay)
|
||||||
|
{
|
||||||
|
foreach ($overlay as $key => $value) {
|
||||||
|
if (is_array($value) && isset($base[$key]) && is_array($base[$key])) {
|
||||||
|
$base[$key] = array_deep_merge($base[$key], $value);
|
||||||
|
} else {
|
||||||
|
$base[$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $base;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide BB_PATH
|
* Hide BB_PATH
|
||||||
*
|
*
|
||||||
|
|
|
@ -632,7 +632,7 @@ class User
|
||||||
global $lang;
|
global $lang;
|
||||||
require(LANG_DIR . 'main.php');
|
require(LANG_DIR . 'main.php');
|
||||||
setlocale(LC_ALL, $bb_cfg['lang'][$this->data['user_lang']]['locale'] ?? 'en_US.UTF-8');
|
setlocale(LC_ALL, $bb_cfg['lang'][$this->data['user_lang']]['locale'] ?? 'en_US.UTF-8');
|
||||||
$lang += $source_lang;
|
$lang = array_deep_merge($source_lang, $lang);
|
||||||
|
|
||||||
$theme = setup_style();
|
$theme = setup_style();
|
||||||
$DeltaTime = new DateDelta();
|
$DeltaTime = new DateDelta();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue