fix cleanup + get_user_locale()

This commit is contained in:
xiaomlove
2025-04-23 14:42:13 +07:00
parent a534611381
commit 13bc885fd7
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
global $rootpath;
$requestId = nexus()->getRequestId();
require_once($rootpath . '/lang/_target/lang_cleanup.php');
// require_once($rootpath . '/lang/_target/lang_cleanup.php');
set_time_limit(0);
ignore_user_abort(1);

View File

@@ -1369,7 +1369,7 @@ function convertNamespaceToSnake(string $str): string
function get_user_locale(int $uid): string
{
$sql = "select language.site_lang_folder from useers inner join language on users.lang = language.id where users.id = $uid limit 1";
$sql = "select language.site_lang_folder from users inner join language on users.lang = language.id where users.id = $uid limit 1";
$result = \Nexus\Database\NexusDB::select($sql);
if (empty($result) || empty($result[0]['site_lang_folder'])) {
return "en";